Here's a couple of links on this. Both for iPhone I think but it should work for Cocoa projects too....
http://www.clintharris.net/2009/iphone-app-shared-libraries/ http://t-machine.org/index.php/2009/02/26/using-shared-libraries-for-iphone-with-multiple-projects/ 2009/7/1 <cocoa-dev-requ...@lists.apple.com>: > Send Cocoa-dev mailing list submissions to > cocoa-...@lists.apple.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.apple.com/mailman/listinfo/cocoa-dev > or, via email, send a message with subject or body 'help' to > cocoa-dev-requ...@lists.apple.com > > You can reach the person managing the list at > cocoa-dev-ow...@lists.apple.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Cocoa-dev digest..." > > > Today's Topics: > > 1. Re: NSDateFormatter Breaks on non-English OS (Trygve Inda) > 2. Re: what user does a PreferencePane run as? (Andy Lee) > 3. Re: NSDateFormatter Breaks on non-English OS (mmalc Crawford) > 4. Re: what user does a PreferencePane run as? (Bill Janssen) > 5. [iPhone] newbie Q: switching between two views (Beth Freeman) > 6. Re: NSDateFormatter Breaks on non-English OS (Trygve Inda) > 7. Re: Dynamic Services menu, CM plug-in alternatives (Alex Kac) > 8. How Do I Statically Link to libcurl? (Chris Tracewell) > 9. Re: How Do I Statically Link to libcurl? (Kyle Sluder) > 10. Re: [iPhone] newbie Q: switching between two views (Kyle Sluder) > 11. Re: GC bug in NSFontManager? (Tommy Nordgren) > 12. Help with Help (AHLookupAnchor) (Graham Cox) > 13. Crash on wake from sleep (Trygve Inda) > 14. Re: Raw Infrared Data (Andrew Farmer) > 15. Re: Raw Infrared Data (Mr. Gecko) > 16. Re: How Do I Statically Link to libcurl? (Chris Tracewell) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 01 Jul 2009 00:08:38 +0000 > From: Trygve Inda <cocoa...@xericdesign.com> > Subject: Re: NSDateFormatter Breaks on non-English OS > To: mmalc Crawford <mmalc-li...@mmalc.com>, Cocoa-dev > <cocoa-dev@lists.apple.com> > Message-ID: <c6705986.399de%cocoa...@xericdesign.com> > Content-Type: text/plain; charset="ISO-2022-JP" > > So, > > In the International Pane of System prefs, I have set the Region to Germany > > Then in my app I call: > > NSString* myDateString = @"Tue Jun 30 15:53:24 UTC 2009"; > > NSDateFormatter* theFormat = [[NSDateFormatter alloc] init]; > > [theFormat setFormatterBehavior:NSDateFormatterBehavior10_4]; > [theFormat setLocale:[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"]]; > [theFormat setDateFormat:@"EEE MMM dd HH:mm:ss zzz yyyy"]; > > myDate = [myFormatter dateFromString:myDateString]; > > > But myDate is always nil. If I set my Region to US or UK all is well. > > ??? > > Trygve > > > > > ------------------------------ > > Message: 2 > Date: Tue, 30 Jun 2009 20:09:31 -0400 > From: Andy Lee <ag...@mac.com> > Subject: Re: what user does a PreferencePane run as? > To: Bill Janssen <jans...@parc.com> > Cc: Cocoa-dev <cocoa-dev@lists.apple.com> > Message-ID: <56986807302784301701262328742440006465-webm...@me.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Although it has "System" in its name, it's just another double-clickable > application, so it runs as the user who launches it. The fact that you can > launch it from the Apple menu is just a convenience. > > --Andy > > On Tuesday, June 30, 2009, at 08:01PM, "Bill Janssen" <jans...@parc.com> > wrote: >>I'm working on a system prefs pref pane for my application. I'd like to >>have it read the user's preferences for that application, but I can't >>find out where it says what user the System Preferences application runs >>as, and how to control that, or whether that's possible. >> >>Bill >>_______________________________________________ >> >>Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >> >>Please do not post admin requests or moderator comments to the list. >>Contact the moderators at cocoa-dev-admins(at)lists.apple.com >> >>Help/Unsubscribe/Update your Subscription: >>http://lists.apple.com/mailman/options/cocoa-dev/aglee%40mac.com >> >>This email sent to ag...@mac.com >> >> > > > ------------------------------ > > Message: 3 > Date: Tue, 30 Jun 2009 17:29:29 -0700 > From: mmalc Crawford <mmalc-li...@mmalc.com> > Subject: Re: NSDateFormatter Breaks on non-English OS > To: Trygve Inda <cocoa...@xericdesign.com> > Cc: Cocoa-dev <cocoa-dev@lists.apple.com> > Message-ID: <1204b2c7-5dfc-4ab2-88f1-d6c51aef6...@mmalc.com> > Content-Type: text/plain; charset=us-ascii; format=flowed > > > On Jun 30, 2009, at 5:08 PM, Trygve Inda wrote: > >> [theFormat setDateFormat:@"EEE MMM dd HH:mm:ss zzz yyyy"]; > >> > I'm not sure if "UTC" is recognised; try: > > [myFormatter setDateFormat:@"EEE MMM dd HH:mm:ss 'UTC' yyyy"]; > > mmalc > > > > ------------------------------ > > Message: 4 > Date: Tue, 30 Jun 2009 17:49:23 PDT > From: Bill Janssen <jans...@parc.com> > Subject: Re: what user does a PreferencePane run as? > To: Andy Lee <ag...@mac.com> > Cc: Cocoa-dev <cocoa-dev@lists.apple.com> > Message-ID: <36403.1246409...@parc.com> > > Thanks. > > Bill > > Andy Lee <ag...@mac.com> wrote: > >> Although it has "System" in its name, it's just another double-clickable >> application, so it runs as the user who launches it. The fact that you can >> launch it from the Apple menu is just a convenience. >> >> --Andy >> >> On Tuesday, June 30, 2009, at 08:01PM, "Bill Janssen" <jans...@parc.com> >> wrote: >> >I'm working on a system prefs pref pane for my application. I'd like to >> >have it read the user's preferences for that application, but I can't >> >find out where it says what user the System Preferences application runs >> >as, and how to control that, or whether that's possible. >> > >> >Bill >> >_______________________________________________ >> > >> >Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >> > >> >Please do not post admin requests or moderator comments to the list. >> >Contact the moderators at cocoa-dev-admins(at)lists.apple.com >> > >> >Help/Unsubscribe/Update your Subscription: >> >http://lists.apple.com/mailman/options/cocoa-dev/aglee%40mac.com >> > >> >This email sent to ag...@mac.com >> > >> > > > > ------------------------------ > > Message: 5 > Date: Tue, 30 Jun 2009 17:50:31 -0700 > From: Beth Freeman <bethfree...@gmail.com> > Subject: [iPhone] newbie Q: switching between two views > To: cocoa-dev@lists.apple.com > Message-ID: > <94295ac80906301750g5b1ee1f9l8c4dacc0fb9d5...@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > Hi all,I am building a multiview app and rather than having a root view > controller with two subviews, I thought I'd try putting the view switching > code into the app delegate as follows. However, it's not working. Is this > a dumb thing to do? Should I always use a root view controller if I'm > switching between two views? And what am I missing about the way that > bringSubviewToFront works? My assumption was that if I had two views and > added them both to the window, I could switch between the two views using > this method, but either I'm doing it wrong, or I'm misunderstanding how that > works. I do realize I don't get the benefit of lazy loading of the views, > but because this app is so small, I thought that wouldn't matter much. > > DesignMeditationsAppDelegate: > > - (void)applicationDidFinishLaunching:(UIApplication *)application { > > > // Override point for customization after application launch > > [window addSubview:meditationViewController.view]; > > [window addSubview:aboutViewController.view]; > > [window bringSubviewToFront:meditationViewController.view]; > > [window makeKeyAndVisible]; > > } > > > - (void) switchViews:(UIView *)aView { > > [window bringSubviewToFront:aView]; > > [window makeKeyAndVisible]; > > } > > > One of the view controllers, MeditationViewController (the other one, > AboutViewController has an analogous method): > > > - (IBAction)switchToAboutView:(id)sender { > > NSLog(@"info button pressed"); > > DesignMeditationsAppDelegate *delegate = [[UIApplication sharedApplication] > delegate]; > > [delegate switchViews:self.view]; > > } > > > Thank you very much in advance! > > > Elisabeth > > > ------------------------------ > > Message: 6 > Date: Wed, 01 Jul 2009 01:20:52 +0000 > From: Trygve Inda <cocoa...@xericdesign.com> > Subject: Re: NSDateFormatter Breaks on non-English OS > To: mmalc Crawford <mmalc-li...@mmalc.com> > Cc: Cocoa-dev <cocoa-dev@lists.apple.com> > Message-ID: <c6706a74.39a48%cocoa...@xericdesign.com> > Content-Type: text/plain; charset="ISO-2022-JP" > >> >> On Jun 30, 2009, at 5:08 PM, Trygve Inda wrote: >> >>> [theFormat setDateFormat:@"EEE MMM dd HH:mm:ss zzz yyyy"]; >> >>> >> I'm not sure if "UTC" is recognised; try: >> >> [myFormatter setDateFormat:@"EEE MMM dd HH:mm:ss 'UTC' yyyy"]; >> >> mmalc >> >> > > Indeed that does it. So will the date created be assumed to be UTC/GMT then? > > My App calls > > [NSTimeZone setDefaultTimeZone:[NSTimeZone > timeZoneWithAbbreviation:@"GMT"]]; // So that when we decode NSDate > objects, we get the h/m/s as GMT > > > > > > ------------------------------ > > Message: 7 > Date: Tue, 30 Jun 2009 20:28:20 -0500 > From: Alex Kac <a...@webis.net> > Subject: Re: Dynamic Services menu, CM plug-in alternatives > To: Dragan Mili? <mi...@mac.com> > Cc: Cocoa-dev Mailing List <cocoa-dev@lists.apple.com> > Message-ID: <31441014-6e01-459b-847c-a91161438...@webis.net> > Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes > > A tip - SL is NDA and we can't talk about it here. Second, you don't > have to be a Premium member to get access to it. Select is good and > that's far less expensive. I don't see how Apple makes it difficult. > > On Jun 30, 2009, at 5:29 PM, Dragan Milić wrote: > >> Hello everyone, >> >> I'd firstly like just to mention that I'm not a premium ADC member >> and I've had the bare bones Snow Leopard 10A380 build (passed as a >> asset from a fellow developer, who is a premium member), without any >> new developer tools or documentation,... > > >> So, 3rd party Finder CM plug-ins seem to definitely be dead soon and >> Apple is making it hard again for the small developers who already >> have such applications developed and are expected to update them for >> the coming OS release. >> > > Alex Kac - President and Founder > Web Information Solutions, Inc. > > "Patience is the companion of wisdom." > --Anonymous > > > > > > > ------------------------------ > > Message: 8 > Date: Tue, 30 Jun 2009 18:40:37 -0700 > From: Chris Tracewell <ch...@thinkcl.com> > Subject: How Do I Statically Link to libcurl? > To: Cocoa-dev List <cocoa-dev@lists.apple.com> > Message-ID: <30cfcff9-da65-4e29-af9c-3526cf827...@thinkcl.com> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > So... call me an idiot, but I am lost as how to get libcurl into my > project. I can see libcurl.4.dylib & libcurl.3.dylib on my hard drive > using spotlight. I have googled and googled and only found bits and > pieces here and there but nothing concrete, that is a 1,2,3 > instruction on how to "link against" libcurl. Here is what I think I > need to do but am not sure on specifics > > 1) Statically link against libcurl (3 or 4?) - (in forums everybody > says "just link against it" ... how is this done?) > 2) Edit Project Settings --> Build --> Other Linker Flags to some path > where libcurl can be found ... which is??? > 3) import the <curl.h> or <curl/ease.h> into my controller class - > (seems straight forward) > > I have tried a bizillion combos of the above with enough revisions to > make me sick. Any help is much appreciated. > > Thanks > > Chris > > > ------------------------------ > > Message: 9 > Date: Tue, 30 Jun 2009 18:43:33 -0700 > From: Kyle Sluder <kyle.slu...@gmail.com> > Subject: Re: How Do I Statically Link to libcurl? > To: Chris Tracewell <ch...@thinkcl.com> > Cc: Cocoa-dev List <cocoa-dev@lists.apple.com> > Message-ID: > <4229fcad0906301843n3dbb91f6hf254d5b355dda...@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > On Tue, Jun 30, 2009 at 6:40 PM, Chris Tracewell<ch...@thinkcl.com> wrote: >> So... call me an idiot, but I am lost as how to get libcurl into my project. >> I can see libcurl.4.dylib & libcurl.3.dylib on my hard drive using >> spotlight. I have googled and googled and only found bits and pieces here >> and there but nothing concrete, that is a 1,2,3 instruction on how to "link >> against" libcurl. Here is what I think I need to do but am not sure on >> specifics > > dylib means "dynamic library"... > > Why do you need to link against libcurl statically? Not saying there > aren't valid use cases, but please present yours. > > If you really need to, you can download the source and compile it into > a library yourself. > > --Kyle Sluder > > > ------------------------------ > > Message: 10 > Date: Tue, 30 Jun 2009 18:45:28 -0700 > From: Kyle Sluder <kyle.slu...@gmail.com> > Subject: Re: [iPhone] newbie Q: switching between two views > To: Beth Freeman <bethfree...@gmail.com> > Cc: cocoa-dev@lists.apple.com > Message-ID: > <4229fcad0906301845nce3b731w9ecdd764eb0ee...@mail.gmail.com> > Content-Type: text/plain; charset=ISO-8859-1 > > On Tue, Jun 30, 2009 at 5:50 PM, Beth Freeman<bethfree...@gmail.com> wrote: >> DesignMeditationsAppDelegate: >> >> - (void)applicationDidFinishLaunching:(UIApplication *)application { >> >> >> // Override point for customization after application launch >> >> [window addSubview:meditationViewController.view]; >> >> [window addSubview:aboutViewController.view]; > > If you want to swap between subviews, why are you adding both of them? > >> >> [window bringSubviewToFront:meditationViewController.view]; >> >> [window makeKeyAndVisible]; >> >> } >> >> >> - (void) switchViews:(UIView *)aView { >> >> [window bringSubviewToFront:aView]; >> >> [window makeKeyAndVisible]; > > This is unnecessary... seems like evidence of cargo-cult programming. > > --Kyle Sluder > > > ------------------------------ > > Message: 11 > Date: Wed, 1 Jul 2009 03:45:30 +0200 > From: Tommy Nordgren <tommy.nordg...@comhem.se> > Subject: Re: GC bug in NSFontManager? > To: Ross Carter <rosscarter...@me.com> > Cc: Cocoa-dev Developers <cocoa-dev@lists.apple.com> > Message-ID: <bf44db3c-cb13-48a9-a226-a00ce135f...@comhem.se> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > > On Jul 1, 2009, at 1:57 AM, Tommy Nordgren wrote: > >> >> On Jun 30, 2009, at 11:48 PM, Ross Carter wrote: >> >>> >>> On Jun 30, 2009, at 3:33 PM, Quincey Morris wrote: >>> >>>> On Jun 30, 2009, at 11:34, Ross Carter wrote: >>>> >>>>> I am receiving crash reports for code that enumerates an array >>>>> returned by NSFontManager. The app is garbage-collected. >>>> >>>> Chances are someone will recognize the exact problem and jump in >>>> with an explanation, but in case not: >>>> >>>> (a) Can you post back-traces from the points of failure >>>> corresponding to the source code? >>> >>> This one is typical: >>> >>> Exception Type: EXC_BAD_ACCESS (SIGBUS) Exception Codes: >>> KERN_PROTECTION_FAILURE at 0x0000000000000063 Crashed Thread: 0 >>> >>> Application Specific Information: objc[1622]: garbage collection is >>> ON >>> >>> Thread 0 Crashed: >>> 0 libobjc.A.dylib 0x917e768c objc_msgSend + 28 >>> 1 com.apple.AppKit 0x94d3ef43 -[NSFontManager >>> availableMembersOfFontFamily:] + 963 >>> 2 com.cocomot.Pagehand 0x0003a706 -[CCMFontCollectionsController >>> fontNamesFamiliesDictionary] + 312 >>> 3 com.cocomot.Pagehand 0x0003a1fc -[CCMFontCollectionsController >>> fontCollectionsArrayForControls] + 60 >>> 4 com.cocomot.Pagehand 0x000305fe -[CCMApp init] + 806 >>> 5 com.apple.AppKit 0x94b48e03 -[NSCustomObject nibInstantiate] + 315 >>> 6 com.apple.AppKit 0x94b297f5 -[NSIBObjectData instantiateObject:] >>> + 259 >>> 7 com.apple.AppKit 0x94b28f16 -[NSIBObjectData >>> nibInstantiateWithOwner:topLevelObjects:] + 297 >>> 8 com.apple.AppKit 0x94b1f616 loadNib + 264 >>> 9 com.apple.AppKit 0x94b1ef78 +[NSBundle(NSNibLoading) >>> _loadNibFile:nameTable:withZone:ownerBundle:] + 946 >>> 10 com.apple.AppKit 0x94b1ebbb +[NSBundle(NSNibLoading) >>> loadNibFile:externalNameTable:withZone:] + 171 >>> 11 com.apple.AppKit 0x94b1eaf9 +[NSBundle(NSNibLoading) >>> loadNibNamed:owner:] + 391 >>> 12 com.apple.AppKit 0x94b1e7a8 NSApplicationMain + 434 >>> 13 com.cocomot.Pagehand 0x00002d66 start + 54 >>> >> Is CCMApp an NSApplication subclass. This stack trace seems to >> indicate that there is an instance of it in >> your nib/xib file. >> If so, your application is initialized in an incorrect way, and >> outlets in it may not be set up correctly. >> To fix, delete it from your nib, and set the value for the key >> NSPrincipalClass in your Info.plist file to CCMApp >> (NSApplicationMain uses this key to create an instance of the >> correct NSApplication (sub)class. > > One more thing - you need to move the code from CCMApp init to > finishLaunching, a method that is invoked > immediately before the runloop starts >>>> >>>> (b) Can you reproduce the problem locally? (That is, are you in a >>>> position to try changes and see if the problem goes away?) >>> >>> No, I have never seen it happen. >>> _______________________________________________ >>> >>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >>> >>> Please do not post admin requests or moderator comments to the list. >>> Contact the moderators at cocoa-dev-admins(at)lists.apple.com >>> >>> Help/Unsubscribe/Update your Subscription: >>> http://lists.apple.com/mailman/options/cocoa-dev/tommy.nordgren%40comhem.se >>> >>> This email sent to tommy.nordg...@comhem.se >> >> ------------------------------------------- >> Engineers supporting greenpeace: Comparable to Afroamericans who >> wants to join the Ku Klux Klan >> ---------------------------------------- >> Tommy Nordgren >> tommy.nordg...@comhem.se >> >> >> >> _______________________________________________ >> >> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >> >> Please do not post admin requests or moderator comments to the list. >> Contact the moderators at cocoa-dev-admins(at)lists.apple.com >> >> Help/Unsubscribe/Update your Subscription: >> http://lists.apple.com/mailman/options/cocoa-dev/tommy.nordgren%40comhem.se >> >> This email sent to tommy.nordg...@comhem.se > > ------------------------------------- > This sig is dedicated to the advancement of Nuclear Power > Tommy Nordgren > tommy.nordg...@comhem.se > > > > > > > ------------------------------ > > Message: 12 > Date: Wed, 1 Jul 2009 12:02:16 +1000 > From: Graham Cox <graham....@bigpond.com> > Subject: Help with Help (AHLookupAnchor) > To: Cocoa-Dev List <cocoa-dev@lists.apple.com> > Message-ID: <9782fc57-6b17-4a62-9270-0a01fa3a5...@bigpond.com> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > Hi all, > > I'm trying to link help buttons in my app to topics in my help book. > > I have a simple scheme where the (hidden) title of the button contains > the anchor and I pass it to AHLookupAnchor. The help window opens as > 'untitled' with a blank content, but AHLookupAnchor returns noErr (0). > I have checked that the help book is indexed correctly and have > verified that the anchors are listed using the Unarchiver tool and > that the anchor I'm testing with is listed. Note that my help book > shows up in the Help menu and can be opened from there and browsed > normally. > > Any other ideas on what I might be doing wrong? > > Relevant code: > > - (IBAction) showHelpItemWithTitleOfSender:(id) sender > { > CFBundleRef myApplicationBundle; > CFTypeRef myBookName; > OSStatus err = fnfErr; > > myApplicationBundle = CFBundleGetMainBundle(); > if ( myApplicationBundle ) > { > myBookName = > CFBundleGetValueForInfoDictionaryKey( myApplicationBundle, > CFSTR("CFBundleHelpBookName")); > > NSLog(@"request for help item (anchor): '%@' in help book: '%@'", > [sender title], myBookName ); > > if ( myBookName && CFGetTypeID(myBookName) == CFStringGetTypeID()) > { > err = AHLookupAnchor( myBookName, (CFStringRef)[sender title]); > > NSLog(@"lookup complete, result = %d", err ); > } > } > > if( err != noErr ) > NSBeep(); > } > > > Log output: > > 2009-07-01 11:50:17.031 Ortelius[10371:10b] request for help item > (anchor): 'Create Symbol' in help book: 'Ortelius Help' > 2009-07-01 11:50:17.085 Ortelius[10371:10b] lookup complete, result = 0 > > Unarchiver plist dump showing anchors (relevant portion): > > <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" > "http://www.apple.com/DTDs/PropertyList-1.0.dtd > "> > <plist version="1.0"> > <dict> > <key>SKI_ANCHOR_DATA</key> > <dict> > <key>Create Symbol</key> > <array> > > <string>/helptopics/lessons/Creating_New_Symbols.html</string> > </array> > > > thanks for any help, > > --Graham > > > > ------------------------------ > > Message: 13 > Date: Wed, 01 Jul 2009 02:13:29 +0000 > From: Trygve Inda <cocoa...@xericdesign.com> > Subject: Crash on wake from sleep > To: <cocoa-dev@lists.apple.com> > Message-ID: <c67076c9.39a95%cocoa...@xericdesign.com> > Content-Type: text/plain; charset="ISO-2022-JP" > > My app has a single window with a single view and I call: > > NSImage* theImage = [[[NSImage alloc] > initWithContentsOfFile:mapImagePath] autorelease]; > > [window orderFront:self]; > [imageView setImage:theImage]; > [imageView setNeedsDisplay:YES]; > > The file that this image comes from will be deleted later on, but once > initWithContentsOfFile is called, it no longer needs the file, > right? > > I assume the autorelease is ok since theImage will be retained by imageView. > > Thoughts? > > I can't reproduce this but have a few users getting it occasionally - no > steps to reproduce, but always on wake from sleep. > > > Thread 0 Crashed: > 0 com.apple.CoreGraphics 0x95f91ac0 CGSConvertBGR888toRGBA8888 > + 160 > 1 com.apple.CoreGraphics 0x95eea94b argb32_image + 5611 > 2 libRIP.A.dylib 0x912b46f9 ripd_Mark + 326 > 3 libRIP.A.dylib 0x912ae977 ripl_BltImage + 1307 > 4 libRIP.A.dylib 0x91298549 ripc_RenderImage + 273 > 5 libRIP.A.dylib 0x912a8e6a ripc_DrawImage + 5102 > 6 com.apple.CoreGraphics 0x95edd32d CGContextDrawImage + 397 > 7 com.apple.AppKit 0x90b264b0 -[NSBitmapImageRep > _drawFromRect:toRect:operation:alpha:compositing:flipped:ignoreContext:] + > 2621 > 8 com.apple.AppKit 0x90b2570b -[NSImage > drawInRect:fromRect:operation:fraction:] + 5109 > 9 com.apple.AppKit 0x90f6ad2a -[NSImage > _drawMappingAlignmentRectToRect:withState:backgroundStyle:operation:fraction > :flip:] + 1041 > 10 com.apple.AppKit 0x90bc221b -[NSImageCell > drawInteriorWithFrame:inView:] + 751 > 11 com.apple.AppKit 0x90bc1f1f -[NSImageCell > drawWithFrame:inView:] + 2230 > 12 com.apple.AppKit 0x90b054a7 -[NSControl drawRect:] + > 378 > 13 com.apple.AppKit 0x90b9922c -[NSView _drawRect:clip:] + > 3853 > 14 com.apple.AppKit 0x90b97d23 -[NSView > _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1050 > 15 com.apple.AppKit 0x90b980ba -[NSView > _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1969 > 16 com.apple.AppKit 0x90b980ba -[NSView > _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1969 > 17 com.apple.AppKit 0x90b96679 -[NSView > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRect > ForView:topView:] + 759 > 18 com.apple.AppKit 0x90c7e929 -[NSNextStepFrame > _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRect > ForView:topView:] + 340 > 19 com.apple.AppKit 0x90b92adf -[NSView > _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 3090 > 20 com.apple.AppKit 0x90ad34b3 -[NSView displayIfNeeded] + > 933 > 21 com.apple.AppKit 0x90ad3061 -[NSWindow displayIfNeeded] > + 189 > 22 com.apple.AppKit 0x90ad2e84 _handleWindowNeedsDisplay + > 436 > 23 com.apple.CoreFoundation 0x95cc3942 __CFRunLoopDoObservers + > 466 > 24 com.apple.CoreFoundation 0x95cc4c9c CFRunLoopRunSpecific + 844 > 25 com.apple.CoreFoundation 0x95cc5c78 CFRunLoopRunInMode + 88 > 26 com.apple.HIToolbox 0x9236928c RunCurrentEventLoopInMode + > 283 > 27 com.apple.HIToolbox 0x923690a5 ReceiveNextEventCommon + > 374 > 28 com.apple.HIToolbox 0x92368f19 > BlockUntilNextEventMatchingListInMode + 106 > 29 com.apple.AppKit 0x90ad0d0d _DPSNextEvent + 657 > 30 com.apple.AppKit 0x90ad05c0 -[NSApplication > nextEventMatchingMask:untilDate:inMode:dequeue:] + 128 > 31 com.apple.AppKit 0x90ac95fb -[NSApplication run] + 795 > 32 com.apple.AppKit 0x90a96834 NSApplicationMain + 574 > 33 com.xericdesign.earthdesk.core 0x00002246 0x1000 + 4678 > > > > > ------------------------------ > > Message: 14 > Date: Tue, 30 Jun 2009 20:06:52 -0700 > From: Andrew Farmer <andf...@gmail.com> > Subject: Re: Raw Infrared Data > To: Mr.Gecko <grmrge...@gmail.com> > Cc: Cocoa Dev <cocoa-dev@lists.apple.com> > Message-ID: <0795d077-d908-4870-8e88-3db819dc8...@gmail.com> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > On 30 Jun 2009, at 07:03, Mr. Gecko wrote: >> Is there anyway to get raw Infrared data from the Apple IR >> Controller? I'll like to be able to see data from remotes that are >> not the Apple Remote and also see the raw data of the apple remote >> so I could make a generic game controller or something like that. > > Along with what jcr pointed out, keep in mind that not all infrared > remotes are made alike. There is a significant chance that the Apple > IR receiver was never designed to communicate with anything other than > an Apple remote. > > > ------------------------------ > > Message: 15 > Date: Tue, 30 Jun 2009 22:11:24 -0500 > From: "Mr. Gecko" <grmrge...@gmail.com> > Subject: Re: Raw Infrared Data > To: Andrew Farmer <andf...@gmail.com> > Cc: Cocoa Dev <cocoa-dev@lists.apple.com> > Message-ID: <ba5afed3-a02d-4809-ad0d-f2d245520...@gmail.com> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > All I really need is the raw data from the Apple Remote so I don't > have to have the hold skip and previous buttons function. > > On Jun 30, 2009, at 10:06 PM, Andrew Farmer wrote: > >> On 30 Jun 2009, at 07:03, Mr. Gecko wrote: >>> Is there anyway to get raw Infrared data from the Apple IR >>> Controller? I'll like to be able to see data from remotes that are >>> not the Apple Remote and also see the raw data of the apple remote >>> so I could make a generic game controller or something like that. >> >> Along with what jcr pointed out, keep in mind that not all infrared >> remotes are made alike. There is a significant chance that the Apple >> IR receiver was never designed to communicate with anything other >> than an Apple remote. > > > > ------------------------------ > > Message: 16 > Date: Tue, 30 Jun 2009 20:49:57 -0700 > From: Chris Tracewell <ch...@thinkcl.com> > Subject: Re: How Do I Statically Link to libcurl? > To: Cocoa-dev List <cocoa-dev@lists.apple.com> > Message-ID: <690c1a3c-e1b7-490b-a834-4882554c6...@thinkcl.com> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > > On Jun 30, 2009, at 6:43 PM, Kyle Sluder wrote: > >> dylib means "dynamic library"... >> >> Why do you need to link against libcurl statically? Not saying there >> aren't valid use cases, but please present yours. > > I guess I assumed that static linking is prefered as it would include > libcurl with the executable and thus ensure that the app would work > consistently, even if someone had a different version or had deleted > this library from their machine. In short it just seemed like a safe > option, but I am un-educated in this regard, so it was my best guess. > The deployment environment is fairly easy right now, about 10 > machines, mostly 10.5 with Intel iMac and Powerbooks which I can tweak > if needed, but in the future this may grow and so you get the picture. > > >> If you really need to, you can download the source and compile it into >> a library yourself. >> >> --Kyle Sluder > > Well, honestly don't know a lot about libcurl and was not aware that I > would need to download and compile to be able to statically link, I > thought it was like curl and just already on the machine. I have > already way over shot my time on this so dynamically linking is fine > for now. I was going to use NSTask and curl but saw libcurl and > thought it would be more efficient, but I am about to give up on it > and go back to curl as I have wasted a half a day trying to "link to > it." > > Finally, just to be sure to be sure to steer things back to my > original question... whether I dynamically link or statically link, is > there a manual anywhere that describes how to do this in XCode? > > Thanks > > Chris > > > ------------------------------ > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins (at) lists.apple.com > > http://lists.apple.com/mailman/listinfo/cocoa-dev > > > End of Cocoa-dev Digest, Vol 6, Issue 957 > ***************************************** > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com