Please note: this article is part of the older "Objective-C era" on Cocoa with Love. I don't keep these articles up-to-date; please be wary of broken code or potentially out-of-date information. Read "A new era for Cocoa with Love" for more. Alpha masks are a powerful way to create graphical effects in your program. In this post, I'll show you how to create an alpha mask from a text string and use
MacOSXããã°ã©ãã³ã°ãæ¯æ¥æ´æ°ã 話é¡ï¼ Cocoa, Objective-C, Snow Leopard ç»åãèæ¯ã«é ç½®ãã¦ãå®éã®ä½¿ç¨æã確ããã¦ã¿ããã æªãã¯ç¡ããå°ãæãå ãã¦ã¿ããPreview.app 風ã«ç°è²ã¨ç½ã®ç¹ç·ã§ã©ãã ãããã ããã«ãããã ã½ã¼ã¹ï¼RubberBand-7.zip ç¹ç·ã®æç»ã«ã¯ NSBezierPath ã使ãã CGFloat dasharray[] = {3.0, 3.0}; NSBezierPath* path = [NSBezierPath bezierPath]; [path appendBezierPathWithRect:_rect]; [path setLineWidth:0.5]; [[NSColor grayColor] set]; [path setLineDash:dasharray count:2 phase:
ã¨ããã¯ã©ã¹åã«ãªã£ã¦ããã(SwiftSampleã¯ããã¸ã§ã¯ãå) Cellã®identifierã«NSStringFromClassãããå¤ã使ã£ã¦ããããSwiftã«æ¸ãæããããã¾ãåããªããªã£ã¦ãã¾ã£ãâ¦ã Register as a new user and use Qiita more conveniently You get articles that match your needsYou can efficiently read back useful informationYou can use dark themeWhat you can do with signing up
Swift The powerful programming language thatâs also easy to learn. Swift is a powerful and intuitive programming language for all Apple platforms. Itâs easy to get started using Swift, with a concise-yet-expressive syntax and modern features youâll love. Swift code is safe by design and produces software that runs lightning-fast. Modern Swift is the result of the latest research on programming lan
ã¢ãã£ã³å¤æãçæããã¡ã½ãããå¿ è¦ãªçç± åå³ãå¹³è¡ç§»åãæ¡å¤§ç¸®å°ãå転ãããã®ã«ã¢ãã£ã³å¤æãå¿ è¦ã¨ããã¾ããã¢ãã£ã³å¤æã¯Cocoaã§ãµãã¼ãããã¦ããNSAffineTransformã¯ã©ã¹ã®ãªãã¸ã§ã¯ãã使ãäºã§å³å½¢ãå¹³è¡ç§»åãæ¡å¤§ç¸®å°ãå転ã§ãã¾ãã åå³ã¯NSBezierPathã¯ã©ã¹ã®ãªãã¸ã§ã¯ãã§ãããããå¤å½¢ãããã«ã¯NSBezierPathã¯ã©ã¹ã®transformUsingAffineTransform:ã¡ã½ããã使ãã¾ããå ·ä½çã«ã¯ NSAffineTransformã¯ã©ã¹ã®ãªãã¸ã§ã¯ããç¨æãã¦ãå¤å½¢ã®å 容ãæå®ããã NSBezierPathã¯ã©ã¹ã®ãªãã¸ã§ã¯ãã«transformUsingAffineTransform:ã¡ãã»ã¼ã¸ãéããå¼æ°ã¯ç¨æããNSAffineTransformã¯ã©ã¹ã®ãªãã¸ã§ã¯ãã¨ããã ã¨ããã¹ããããè¸ã¿ã¾ãããã®æåã®ã¹ããã
CVï¼æè¤ååã§äººéé¢ããå±±ã®å¥¥ã«ããå°ããªãµã¤ããããã«ã¯ããã姫ã©ããªç®¡ç人ã¨ã女å»ããã¯çãã®ç®¡ç人ã¨ãCocoa ã®åå¼·ãå§ãã管ç人ãããã®ã§ãï¼âãªãã失æã£ã½ãï¼ã ã¨ããããã§ãCocoa ã«ãã HackENT ã®éçºãéãã¦ããããããã誰ãã®å½¹ã«ç«ã¤ãããããªãã£ãããåå©ç¨ã§ããããªãã®ãã¾ã¨ãã¦ãããã³ã³ã¢å³æ¸é¤¨ãã§ãã 第ä¸åç®ã®ä»åã¯ã«ã©ãªã±ã«ã¯å¿ é ãªç¸åãæåã®æ¸ãæ¹ã§ãã ã¡ãã£ã¨æ°ãå¼ãããã«ããããªãã¿ãé¸ãã§ã¿ã¾ããã -(void) writeBorderString: (NSString *) string AtPoint: (NSPoint) point withAttribute: (NSMutableDictionary *) fontAttribute andBorderAttribute: (NSMutableDictionary *)
ä¿åãã¤ã¢ãã°ãªã©ãä»ããã«ããã¡ã¤ã«ãã¹ã®æååãå ã«ãã¦ãã¡ã¤ã«ãä½æããã®ã¯ããããã¨æ°ã使ãã ååãã¡ã¤ã«ãæ¢ã«åå¨ãã¦ããªããã©ãã ãã¡ã¤ã«åã«ä½¿ãã¹ãã§ã¯ãªãæåãæ··ãã£ã¦ããªãã(/ã¨ã:ã¨ã) 親ãã©ã«ããåå¨ãããã©ãã ä¸åº¦ä½ã£ã¦ãã¾ãã°ä½¿ãåãã°ããã®ã ããã©ãä½ãã®ãé¢åããããªå¦çãé ãã¡ã½ããã使ãã°ä¸çºã§è§£æ±ºã§ãã¦ãã¾ãã¾ããé ãã¡ã½ããã¯ãã¤å»æ¢ããããã¾ã£ããã®ç¡ä¿è¨¼ãªã®ã§ããã®è¾ºã®ãªã¹ã¯ãèãã¦ä½¿ãã¾ãããããããã OS ãå¤ããã°å¤ãã§ããã¾ãæªå®è£ ã®å¯è½æ§ãããã¾ããä»åç´¹ä»ãããã®ã¯ 10.4.10 ã 10.5.2 ã§å®è£ ã確èªãã¦ãã¾ãã ãã¡ã¤ã«åã«ä½¿ãã¹ãã§ã¯ãªãæåãæ··ãã£ã¦ããªãã NSString ã® -(NSString*)_web_filenameByFixingIllegalCharacters ã¨ããé ãã¡ã½ããã使ãã°
å æ¥Xcode 4.3ããªãªã¼ã¹ããã¾ãããXcode 4.3ã§ã¯clangã®ãã¼ã¸ã§ã³ã3.1ã¨ãªããinstancetypeã¨ããåããµãã¼ãããããã«ãªãã¾ããã è¿ãå¤ã®idåã®æ¨è« instancetypeã®è©±ã®åã«ãidåã®è¿ãå¤ã«ã¤ãã¦èãã¾ããCocoaã§ã¯ã+ allocã- initã¨ãã£ãã¡ã½ããã¯è»ä¸¦ã¿idåã®å¤ãè¿ãããã«ãªã£ã¦ãã¾ããåºæ¬çã«ãidåã®å¤ã¯ã©ã®ãããªãªãã¸ã§ã¯ãåç §åã«ãä»£å ¥ã§ãããã¨ã«ãªã£ã¦ãã¾ãã ããããclangã¯ä»¥ä¸ã®ãããªã³ã¼ãã«è¦åãçºãã¾ãã NSString *myBlog = [[NSURL alloc] initWithString:@"http://takebayashi.asia/"]; + allocã- initWithStringãè¿ãå¤ãidåãªã®ã§æ¬æ¥ãªãã°NSString *åã®å¤æ°ã«ä»£å ¥ãã¦ãæå¥ã¯è¨ãããª
⺠2010 (165) ⺠6æ (13) ⺠5æ (31) ⺠4æ (30) ⺠3æ (31) ⺠2æ (28) ⺠1æ (32) â¼ 2009 (366) ⺠12æ (31) ⺠11æ (30) ⺠10æ (31) ⺠9æ (30) ⺠8æ (31) ⺠7æ (31) ⺠6æ (30) ⺠5æ (31) â¼ 4æ (30) WebKitæ¤è¨¼(16) - Flash#6 Webãµã¤ããã¼ã¸ã®è¡¨ç¤ºãµã¤ãº WebKitæ¤è¨¼(15) - Flash#5 ã¦ã£ã³ãã¦ãã£ããã£ æ¬ - ObjC/iPhoneé¢é£ï¼ç¹ WebKitæ¤è¨¼(14) - Flash#4 SimpleCap調æ´ï¼ç¯å²é¸æãµã¤ãºæå®ã®ã³ã³ããã¹ãã¡ãã¥ã¼ç§»åï¼#2 SimpleCap調æ´ï¼ç¯å²é¸æãµã¤ãºæå®ã®ã³ã³ããã¹ãã¡ãã¥ã¼ç§»åï¼ WebKitæ¤è¨¼(13) - Flash#3 WebKitæ¤è¨¼
MacOSXããã°ã©ãã³ã°ãæ¯æ¥æ´æ°ã 話é¡ï¼ Cocoa, Objective-C, Snow Leopard ï¼ãã£ãã·ã¥ã¯ãªã¢ã®ç¶ãï¼ NSURLCache ã調ã¹ã¦ã¿ãã NSURLCache Class Reference ã¾ã以åã®ãµã³ãã«ã³ã¼ãã« "Dump Cache" 㨠"Clear Cache" ãã¿ã³ã追å ããï¼å³ä¸ï¼ã ã³ã¼ãã¯ããã AppController.m - (IBAction)dumpCache:(id)sender { NSURLCache* cache = [NSURLCache sharedURLCache]; NSLog(@"currentDiskUsage: %d", [cache currentDiskUsage]); NSLog(@"diskCapacity: %d", [cache diskCapacity]); NSLog(@"cu
Please note: this article is part of the older "Objective-C era" on Cocoa with Love. I don't keep these articles up-to-date; please be wary of broken code or potentially out-of-date information. Read "A new era for Cocoa with Love" for more. When an application crashes on the iPhone, it disappears without telling the user what happened. However, it is possible to add exception and signal handling
æ¥æ¬èªããã¥ã¡ã³ã æ¥æ¬èªã«ç¿»è¨³ãããiOS/watchOS/tvOSã®ããã¥ã¡ã³ãã§ãã è±èªçã®æ¹ãæ°ããå ´åãããã¾ãã®ã§ãæ´æ°æ¥ã確èªãã¦ä¸ããã ã¨ã³ã¿ã¼ãã©ã¤ãºç°å¢ã§ã®éç¨ã«é¢ããããã¥ã¡ã³ãã¯ãã¡ãã«ç§»åãã¾ããã App Store Connect ãã«ã ã¿ã¤ãã« æ¥ä»
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}