ã¨ã©ã¼è¨é² æ¥è¨ã®æ¤ç´¢ 詳細 ä¸è¦§ ã«ãã´ãªã¼ ãç¥ãã ãªã³ã¯é ãããã¹ ãã¼ã¸ãã¥ã¼ 20131
ã¨ã©ã¼è¨é² æ¥è¨ã®æ¤ç´¢ 詳細 ä¸è¦§ ã«ãã´ãªã¼ ãç¥ãã ãªã³ã¯é ãããã¹ ãã¼ã¸ãã¥ã¼ 20131
æ¸ããæ¸ããã¨æã£ã¦ããã©å¿ãã¦ãã®ããPerlã¨ã³ã¸ãã¢ã®ããã®Objective-C Blockså ¥éãè¦ã¦æãåºãããããã¾ããã¿ã¤ãã«ã¯ä¾¿ä¹ã§ãã 試ãã«æ¸ãã¦ã¿ã Blocksã£ã¦ã®ãä½è ãªã®ãã¯ãã£ãã®è¨äºãªãAppleã®ããã¥ã¡ã³ããªããè¦ã¦ãããã°ããã¨æããã§ãããã¾ãã¦ã±ãè¯ããããªã®ã§ä»ããã¿ã¤ãã«ã«ã®ã£ã¨ã£ã¦Rubyã¨æ¯è¼ãã¦ã¿ãã f = lambda {|x| puts "#{x}ã®ãã¨ä»¥å¤ã¯ä½ãèããããªã" } f.call("ãã©ã") void (^f)(id) = ^(id x) { NSLog(@"ä¸çã®å ¨ã¦ãæµã«åãã¦ããåã¯%@ã®å³æ¹ã ", x); }; f(@"ãã©ã"); ãªãã ããã£ãããããªããä¼¼ã¦ãä¼¼ã¦ãã ä¸ãRubyçãä¸ãObjCçãä¸ã¯æ®éå¼æ°ã«ã¯NSString*ã¨ãã使ãã¨æããã©ãã¾ãRubyçã¨æåãåãããããã«idã«
OS X 10.6 以éã® xcode ã§ã¯ Objective-C ã« Blocks ã¨ããã·ã³ã¿ãã¯ã¹ã追å ããã¦ããã Blocks Programming Topics: Introduction Perl ã§ããã¨ããã®ç¡åé¢æ°ï¼ã³ã¼ããããã¯ï¼ãä½ããã¨ãã§ããæ©è½ã§ãPerlã§ããã¨ããã® my $f = sub { ... }; $f->(); 㯠void (^f)() = ^{ ... }; f(); ã®ããã«æ¸ãããæ¸å¼ããããã®ã¯Objective-Cã®å®ããªã®ã§ããããã¾ãããã ãã詳ããæ¸å¼ã«ã¤ãã¦ã¯ä¸è¨ããã¥ã¡ã³ããè¦ãã¨è¯ãã ãããããã©ã«ãã§ã¯Perlã®ã³ã¼ããããã¯ã¨ã¯ã¬ãã·ã«ã«å¤æ°ã®æ±ããç°ãªãã my $i = 0; my $f = sub { return $i + 1 }; $i++; $f->(); # 2 ãè¿ã perlã§ã¯ãã®ããã«ã¬
UVC Camera Control for Mac OS X For a recent computer vision project I needed to pull images out of a Logitech QuickCam 9000 and track some markers with the help of the ARToolKitPlus library. I connected the camera to my Mac and was quite surprised to see that it just works. There was no need to install any drivers. As I learned later, that's because the QuickCam 9000 is a UVC webcam for which Mac
Objective-Cãåå¼·ãã¦ãããã§ãããã¨ããããæ°æ¥½ã«æã¡éã¹ãEeePCã®ç°å¢ã§CUIã®éçºãåºæ¥ãã°ãããªã¨æãLinuxç°å¢ã§éçºãã§ããããã«ãã¦ã¿ã¾ããã ãããã ã£ã¦MacBookéãããã§ããããããã¨ããã¼ãã¼ãããã¡ããã¡ãç±ããªãããHHKãæ¥ç¶ãã¦ããªãã¨å ¥åããæ°ã«ãªããªãããã ã¾ãããã¯ããã¨ãã¦ãè²ã 調ã¹ãçµæ以ä¸ã®ã©ã¤ãã©ãªç¾¤ãã¤ã³ã¹ãã¼ã«ããã°ã³ã³ãã¤ã«ãå¯è½ã«ãªãã¾ããã sudo apt-get install build-essential sudo apt-get install gobjc sudo apt-get install libgnustep-base-dev sudo apt-get install gnustep sudo apt-get install gnustep-devel ã³ã³ãã¤ã«æ¹æ³ã¯æ¬¡ã®ããã«ãªãã¾ãã gc
Tokyo Dystopia ã Cocoa ã¢ããªãã使ãããã« framework åãã CocoaDystopia ããªãªã¼ã¹ãã¾ããã http://github.com/psychs/cocoadystopia ç¹ã« Objective-C ã®ã¯ã©ã¹ã§ã©ãããããã¯ãã¦ããªãã®ã§ãTokyo Dystopia ã® C API ããã®ã¾ã¾å©ç¨ãã¦ãã ããã
ãªãã§ãã¿ã¼ããã«ã§å®çµããããç æè¿Objective-Cããä»äºã§æ¸ãã¦ãããããã ãã©ã試è¡é¯èª¤ããªãããããªãã¦ããç¨åº¦éæ¸ãããã«ãªã£ã¦ããã¨Xcodeãããã£ããéããã®ã§ãObjC対å¿æ¸ã¿ã®ctagsãã¤ã³ã¹ãã¼ã«ãããxcodebuildããããªã«å©ãã¦ãããRakefileæ¸ããããã¦vimã§ä½æ¥ããç°å¢ãæ´ããããã¡ããiPhoneã·ãã¥ã¬ã¼ã¿ãèµ·åããããªãã¡ã¬ã³ã¹èªãã ãããã®ã§Xcodeã¯éãã£ã±ãªããªãã ãã©ãããã§ãæ¸ãã®ãvimã§ãããããã«ãªã£ãã大å楽ã«ãªã£ãã æ¸ãã®ã¯æ¥½ã«ãªã£ããã©ããããªãã¨ä»åº¦ã¯åä½ã®æ¤è¨¼ããã¡ãã¡ã·ãã¥ã¬ã¼ã¿èµ·åãã¦ããããæä½ãã¦ã£ã¦ã®ã馬鹿馬鹿ãããªã£ã¦ããããããããã¹ããæ¸ããªãã§ã¢ããªéçºã¨ãæ³£ãã¦ããã幸ãiPhoneSDKã§ãOCUnitã使ããã®ã§ãã©ã¤ãã©ãªã¨ãã¦åãåºããé¨åãå¥ããã¸ã§ã¯ãã«åãåºããä¸ã§
Growl.framework ãªã㧠Objective-C ãã Growl ã«éç¥ãéãã©ã¤ãã©ãªãTinyGrowl ããªãªã¼ã¹ãã¾ããã http://github.com/psychs/tinygrowl ä»ã®ã¢ããªã«çµã¿è¾¼ããã©ã°ã¤ã³ãã Growl ã«éç¥ãéãããå ´åãªã©ã«ä½¿ããã¨æãã¾ãã(ãã©ã°ã¤ã³ã§ Growl.framework ããã¼ããã¦ãã¾ãã¨ãã¢ããªæ¬ä½ãä»ã®ãã©ã°ã¤ã³ã§ Growl.framework ã使ããªããªã£ã¦ãã¾ãã®ã§) 使ãæ¹ã¯ãããã£ã¦ç°¡åã§ãã ã¾ãã¯åæåã growl = [TinyGrowlClient new]; growl.delegate = self; growl.allNotifications = [NSArray arrayWithObjects:@"Alert", @"Info", nil]; allNotifica
ããããã« Xcode ã®ããã¥ã¡ã³ããæ¤ç´¢ãã㨠CGGetOnlineDisplayList ã¨ãããé¢æ°ãè¦ã¤ãã£ãã®ã§ #include <CoreFoundation/CoreFoundation.h> #include <ApplicationServices/ApplicationServices.h> int main (int argc, const char * argv[]) { CGDisplayCount displayCount; CGDirectDisplayID displays[4]; int i; CGGetOnlineDisplayList(4, displays, &displayCount); for (i = 0; i < displayCount; ++i) { CGRect rect = CGDisplayBounds(displays[i]
UIViewControllerã¨åãã§ãç¶æ¿ãã¦shouldAutorotateToInterfaceOrientation:ã§YESãè¿ãã¾ãã #import <UIKit/UIKit.h> @interface MyTabBarController : UITabBarController @end #import "MyTabBarController.h" @implementation MyTabBarController - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return YES; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; } -
iPhone 㧠San Francisco ã®ééã»ãã¹è·¯ç·å³ã表示ãããµã³ãã«ã¢ããªãä½ã£ã¦ã¿ãã®ã§ã½ã¼ã¹ãå ¬éãã¾ãã http://github.com/psychs/iphone-samples/tree/master/SFMap åç´ã«å°å³ã® PDF ãæç»ããã¨ãããéããªã£ã¦ãã¾ãã®ã§ã大ããã®éãç»åãããã¤ãç¨æãã¦ããºã¼ã ã«å¾ã£ã¦è¡¨ç¤ºããç»åãå¤ãã¦ããããã«ãã¦ãã¾ãã UIScrollView ã使ã£ã¦ãã¤ã¼ãã«å®è£ ããã¨ãUIScrollView ã®ãºã¼ã ç¶æ ãå¤ããã³ã³ããã¼ã«ãããã¨ãã§ããªãã®ã§ããºã¼ã ãçµäºãããã³ã« UIScrollView èªä½ãä½ãç´ãããããå¿ è¦ãããã¾ãã ããã§ãä»å㯠UIImageView ã®ãµãã¯ã©ã¹ãä½ãã - (void)setTransform:(CGAffineTransform)value; { float s
æ°ãããã¨ã«ãã£ã¬ã³ã¸ãããã¨æãã¤ã¤ãããã®ããã«æ°ããæè¡ãç¿å¾ããã¨ãªãã¨ã³ã¹ããé«ããªã£ã¦ãã¾ãããã£ã¨æ軽ã«ã¯ãããããã¨ã¹ã ã¼ãºã§ã¯ãªãã ããããç¹ã«ããã°ã©ãã³ã°è¨èªã¯ç¿å¾ã³ã¹ããé«ããæ°è»½ã«ã¯ããããã¨æãã¾ã§ã«ã¯ç¸å½æéãããã£ã¦ãã¾ãã iPhoneã§RubyCocoaã使ããï¼ å¹¸ãã«ãã¦ãObjective-Cã«ã¯ä»è¨èªã¨ã®ããªãã¸ãè¡ãæè¡ããããããã§æ³¨ç®ãããã®ãiPhone RubyCocoaã ã ä»åç´¹ä»ãããªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ã¯iPhone RubyCocoaããã®åã®éãiPhoneåããã¤ãã£ãã¢ããªã±ã¼ã·ã§ã³ãRubyã§éçºããããã®ãã¬ã¼ã ã¯ã¼ã¯ã ã iPhone RubyCocoaã¯RubyCocoaãiPhoneåãã«å±éãããã¬ã¼ã ã¯ã¼ã¯ã ãRubyã®ã¹ã¯ãªããã§iPhoneåãã®è¨è¿°ãã§ããã³ã³ãã¤ã«ãããã¨ã§ãã¤ãã£ããªã¢ããªã±
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
nib2objc akosma/nib2objc · GitHub 以ä¸ã®ããã«ããã©ã¡ã¼ã¿ã«XIBãã¡ã¤ã«ãæå®ããã¨ãæ¨æºåºåã«ã³ã¼ããåºåããã¾ãã $ nib2objc WebView.xib > WebView.m ãã®ãããªãã¥ã¼ããä¸è¨ã®ã³ã¼ããåºåããã¾ãã XIBãã¡ã¤ã«ãã½ã¼ã¹ã³ã¼ãã«å¤æããå ´åã¨ããã®ã¯ãããã©ã¼ãã³ã¹ã®ããã«ãXIBãã¡ã¤ã«ã使ããªãããã«ãããå ´åãã»ã¨ãã©ã ã¨æãã®ã§ããã®ã³ã¼ãããã£ã¦XIBãã¡ã¤ã«ãç½®ãæããã®ã¯é£ããã§ãã ã¤ã³ã¹ã¿ã³ã¹å¤æ°ãã¢ã¯ã·ã§ã³ã®æ¥ç¶ãç¡ããªã£ã¦ãã¾ãã®ã§ãããããåæ§ç¯ããæéãèããã¨ãèªåã§æ¸ããæ¹ãæ©ãã¨æãã¾ãã ãã ãã½ã¼ã¹ã³ã¼ããå ¬éããã¦ããã®ã§ã工夫ãã¦æ¹è¯ããã°ã便å©ãªãã¼ã«ã«ãªãããã§ãã UIBarButtonItem *view39 = [[UIBarButtonItem alloc] i
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
http://mtl.recruit.co.jp/blog/2009/01/iphoneiphonesdk.html ã¤ã¾ããããã©ã«ãã§ã¯ãautoreleaseãããã¤ã³ã¹ã¿ã³ã¹ã¯ããã®ãã¼ã«ã«ã©ãã©ãã追å ããã¦ãããã¡ãã£ã¨ããæååã§ãã£ã¦ã NSString.stringWithFormatãä¹±çºããã¨ãã¡ã¢ãªä¸è¶³ã«ãªããããªãã¨ãããã¨ã§ãã注æã注æã http://mtl.recruit.co.jp/blog/2009/01/iphoneiphonesdk.html NSAutoreleasePoolã¯ã¤ãã³ãã«ã¼ããä¸å¨ãããã³ã«çæã¨ç ´æ£ãç¹°ãè¿ãã¾ãã ã§ãã®ã§ãã¢ããªã±ã¼ã·ã§ã³çµäºã¾ã§ããªãã¸ã§ã¯ããæºã¾ã£ã¦ããã¨ãããã¨ã¯ããã¾ããã ããã¦ãã¯ãautoreleaseæ¸ã¿ã®ãªãã¸ã§ã¯ãã¯ã¡ã½ãããæããå¾ã«è§£æ¾ããã¾ãã ã²ã¨ã¤ã®ã¡ã½ããã§ãä¸æãªãã¸ã§ã¯ãã
ãããããã®ã§ã¯ãªãã§ããã iPhoneã¢ããªéçºç¨ã« Linked Listã¨LRUCacheãå®è£ ããã¦ã¼ãã£ãªãã£ã©ã¤ãã©ãªãå ¬éãã¾ãã http://github.com/genki/s21gutils/tree/master æ¬å½ã¯ãµã¼ããã¼ãã£ãã¬ã¼ã ã¯ã¼ã¯ã®å½¢ã«ãããã£ããã§ããã iPhoneã§ãµãã¼ãããã¦ãªããããªã®ã§ãã½ã¼ã¹ã¨UnitTestç¨ããã¸ã§ã¯ãã®å½¢ã§å ¬éãã¾ãã ããããã¡ã¤ã«ãã³ãã¼ã¨ãããã®ãé¢åãªã®ã§ã Gitã§ã½ã¼ã¹ã管çãã¦ãããã¸ã§ã¯ãã§ä½¿ãå ´åã¯ã 以ä¸ã®ããã«Git submoduleã¨ãã¦è¿½å ããã¨ã¡ã³ããã³ã¹ã楽ããã§ãã 1 % git submodule add http://github.com/genki/s21gutils/tree/master Classes/s21gutils
1 #define BM_START(name) NSDate *name##_start = [NSDate new] 2 #define BM_END(name) NSDate *name##_end = [NSDate new];\ 3 NSLog(@"%s interval: %f", #name, [name##_end timeIntervalSinceDate:name##_start]);\ 4 [name##_start release];[name##_end release] iPhoneã¢ããªãéçºãã¦ããå ´åãã·ãã¥ã¬ã¼ã¿ä¸ã®åä½æé㨠å®æ©ã§ã®åä½æéã¯å ¨ãç°ãªãã®ã§ã å®éã«å®æ©ã§åããã¦ã¿ãå ´åã«ã©ã®ç¨åº¦ã®æéãããã£ã¦ãããã 測å®ããã®ã«ä½¿ã£ã¦ãã¾ãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}