Scene Kit

2012-10-19 Thread Thomas Cunningham
On desktop, what mechanisms should I be using to implement a simple zoom in and out of the 3d scene? I am using a camera node and have tried using xFov, yFov and position properties with mixed results. I'm using the example code from Apple as a starting point learning this framework and really l

Re: kFSEventStreamEventFlagItemRenamed is for rename or trash ?

2012-10-19 Thread Sean McBride
On Fri, 12 Oct 2012 15:30:56 +0900, Alfian Busyro said: >> After you're told a file has moved, get all the Trash directories using >> -[NSFileManager URLsForDirectory:inDomains:] and see if the file is a >> descendant of any one of them. >would you mind to give me a simple example of this method ?

Re: How to send fetchrequest to main context from a local context on a separate thread?

2012-10-19 Thread Mikkel Islay
On 19 Oct 2012, at 14:54, Koen van der Drift wrote: > So is there a way in Xcode to follow threads and (visually) get an > idea about what happens on each one, so I can debug this? I have seen > all the threads pop up in the left column during the execution, but I > find that kinda difficult to

Re: How to send fetchrequest to main context from a local context on a separate thread?

2012-10-19 Thread Koen van der Drift
Here's what you want: > > __block BOOL exists; > dispatch_sync(dispatch_get_main_queue, ^{ > NSManagedObjectContext *context = … // grab the context > exists = … // query the context to see if the data already exists > }); Thanks Mike, that works very nice. Unfortunately, after

[SOLVED] NSUbiquitousKeyValueStoreDidChangeExternallyNotification

2012-10-19 Thread Paul Scott
I spent days checking out everything to no avail. Both devices using the same iCloud account, entitlements and provisioning profile in order, code correct, waiting patiently for a notification: nada. In total frustration I powered off both devices and restarted them. Voilà! Now I'm getting not