Re: Weird NSPredicate structure when using "first" in keypath

2017-01-09 Thread Aaron Tuller
Try doing name.#first as FIRST and LAST are reserved words and need escaping: https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/Predicates/Articles/pSyntax.html I just tried: NSComparisonPredicate *p = (NSComparisonPredicate *)[NSComparisonPredicate pr

Re: NSPersistentContainer with alternate stores

2016-12-16 Thread Aaron Tuller
check out: https://developer.apple.com/reference/coredata/nspersistentcontainer/1640577-persistentstoredescriptions?language=objc you can set the store type there: https://developer.apple.com/reference/coredata/nspersistentstoredescription/1640609-type?language=objc -aaron > On Dec 11, 2016, a

Re: NSImage drawInRect deadlock

2016-08-08 Thread Aaron Tuller
On Aug 8, 2016, at 1:48 PM, Jens Alfke wrote: > On Aug 8, 2016, at 12:46 PM, Aaron Tuller <mailto:mandelb...@mac.com>> wrote: >> >> Search for NSImage here: >> >> https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Multithreading/ThreadSa

Re: NSImage drawInRect deadlock

2016-08-08 Thread Aaron Tuller
Search for NSImage here: https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Multithreading/ThreadSafetySummary/ThreadSafetySummary.html#//apple_ref/doc/uid/1057i-CH12-126728 It sounds like you may need to do this serially, or try setting the cache mode to NSImageCacheNeve

Re: Cocoa-dev Digest, Vol 13, Issue 224

2016-05-19 Thread Aaron Tuller
You want: https://developer.apple.com/library/mac/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWorkspace_Class/#//apple_ref/occ/instm/NSWorkspace/openURLs:withAppBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifiers: to open a certain URL with a certain app. and you

Re: NSArray's objectAtIndex compiles to objectAtIndexedSubscript?

2014-03-07 Thread Aaron Tuller
On Mar 7, 2014, at 4:54 AM, Bill Cheeseman wrote: > My code calls -[NSArray objectAtIndex:]. I compile it with Xcode 5.0.2 on OS > X 10.9.x Mavericks in a project with the target's Base SDK set to 10.9 and > the OS X Deployment Target set to OS X 10.7. It works fine when I run it on > OS X 10.

Re: Confusion about KVC and custom setter

2012-04-09 Thread Aaron Tuller
you need to override automaticallyNotifiesObserversForKey: to return NO for @"selectedIndex" see: http://developer.apple.com/library/ios/#documentation/cocoa/conceptual/KeyValueObserving/Articles/KVOCompliance.html if you observe an object, the runtime automatically generates the willChange/d

Re: ABPerson initWithVCardRepresentation without addRecord

2010-01-01 Thread Aaron Tuller
At 2:49 PM +0100 12/31/09, B.Ohr wrote: ps = ABPerson.alloc.initWithVCardRepresentation(data) # MacRuby syntax ;-) the generated person is added automatically to the AdressBook database, in opposite to: ps = ABPerson.alloc.init # not added ABAddressBook.sharedAddressBook.a

Re: AddressBook ABMultiValue -labelAtIndex:

2009-12-30 Thread Aaron Tuller
At 2:19 PM -0800 12/30/09, Rainer Standke wrote: When I ask an ABMultiValue for its labelAtIndex: I get some thing like this: _$!!$_ I would have expected to get this: other How can I get to the clean value? The function you need is ABCopyLocalizedPropertyOrLabel: http://developer.apple.co

Re: "Save as PDF"?

2009-10-13 Thread Aaron Tuller
Hi Laurent, At 5:23 PM -0700 10/13/09, Laurent Daudelin wrote: Maybe a dumb question but anybody knows what's happening behind the scene when you click "Save" in the dialog that is displayed after you choose "Save as PDF" from the print dialog? What magic is performed to have the printed docu