Tracking object references

2013-01-12 Thread Martin Hewitson
Dear list, I'm still struggling to find the cause of a "CoreData could not fulfil a fault" error on saving an NSPersistentDocument (see other mail thread "coredata count not fulfill fault after object delete"). I'm wanting to check if some other object has a strong reference to the deleted obj

Re: Tracking object references

2013-01-12 Thread Mike Abdullah
On 12 Jan 2013, at 09:01, Martin Hewitson wrote: > Dear list, > > I'm still struggling to find the cause of a "CoreData could not fulfil a > fault" error on saving an NSPersistentDocument (see other mail thread > "coredata count not fulfill fault after object delete"). > > I'm wanting to che

HiDPI retina issue with multi-screen overlay window and Core Animation

2013-01-12 Thread William J. Cheeseman
My Pointer Noodge application displays an animated image surrounding the mouse pointer using a layer-hosting multi-screen view: . I am having difficulty upgrading it to handle a mix of retina and non-retina displays. All help appreciated. The specific problem is

Re: How to force creation of default persistentStore/autosave in NSPersistentDocument

2013-01-12 Thread Joachim Kurz
Hi Jerry, > Make sure you're not using asynchronous saving with NSPersistentDocument. I assume I do that by returning NO in - (BOOL)canAsynchronouslyWriteToURL:(NSURL *)url ofType:(NSString *)typeName forSaveOperation:(NSSaveOperationType)saveOperation ? NSPersistentDocument override this metho

Re: HiDPI retina issue with multi-screen overlay window and Core Animation

2013-01-12 Thread Richard Somers
On Jan 12, 2013, at 7:08 AM, William J. Cheeseman wrote: > My best guess is that the problem results from the fact that the overlay > window spans all attached screens. An NSLog() call confirms that the window's > backingScaleFactor is always 1.0 (because it is initially created on a > non-ret

Re: Tracking object references

2013-01-12 Thread Martin Hewitson
On 12, Jan, 2013, at 12:13 PM, Mike Abdullah wrote: > > On 12 Jan 2013, at 09:01, Martin Hewitson wrote: > >> Dear list, >> >> I'm still struggling to find the cause of a "CoreData could not fulfil a >> fault" error on saving an NSPersistentDocument (see other mail thread >> "coredata coun

Could somebody please fix NSTimer?

2013-01-12 Thread Gordon Apple
When compiled under ARC, NSTimer should have a weak, not strong, reference to its target. When the timer starts to fire, check the reference for nil and invalidate itself. Come on guys, how hard is that? You wouldn¹t even have to keep a reference to it, unless you want to invalidate it before th

Re: Could somebody please fix NSTimer?

2013-01-12 Thread Kyle Sluder
On Jan 12, 2013, at 10:49 AM, Gordon Apple wrote: > When compiled under ARC, NSTimer should have a weak, not strong, reference > to its target. When the timer starts to fire, check the reference for nil > and invalidate itself. Come on guys, how hard is that? You wouldn¹t even > have to keep a

Re: Could somebody please fix NSTimer?

2013-01-12 Thread Gwynne Raskind
On Jan 12, 2013, at 2:05 PM, Kyle Sluder wrote: > On Jan 12, 2013, at 10:49 AM, Gordon Apple wrote: > >> When compiled under ARC, NSTimer should have a weak, not strong, reference >> to its target. When the timer starts to fire, check the reference for nil >> and invalidate itself. Come on guy

Re: Could somebody please fix NSTimer?

2013-01-12 Thread Ian was here
If it's a repeating timer, then you can call invalidate and assign it to nil in the target selector method. This approach wouldn't require a class reference to it either. From: Gordon Apple To: cocoa-dev@lists.apple.com Sent: Saturday, January 12, 2013 10:49

Re: HiDPI retina issue with multi-screen overlay window and Core Animation

2013-01-12 Thread William J. Cheeseman
On Jan 12, 2013, at 11:21 AM, Richard Somers wrote: > A single window which overlays multiple screens with each screen using a > possibly different backingScaleFactor. Wow! It's the only way I could find to detect when the mouse enters any particular screen, using NSTrackingArea with -[NSResp

Re: Could somebody please fix NSTimer?

2013-01-12 Thread Gordon Apple
And just how does one go about doing that? The only way I can see is to use an owner’s dealloc to call something like “wouldLikeToDealloc” on the owned object. From the literature, it appears that NSTimer is the main offender in this regard. I frequently use generic NSViewControllers and NSWindo

Re: Could somebody please fix NSTimer?

2013-01-12 Thread Kyle Sluder
On Jan 12, 2013, at 12:16 PM, Gordon Apple wrote: > And just how does one go about doing that? The only way I can see is to use > an owner’s dealloc to call something like “wouldLikeToDealloc” on the owned > object. Retain/release is just an implementation of a pattern. You can implement it

Re: HiDPI retina issue with multi-screen overlay window and Core Animation

2013-01-12 Thread Richard Somers
On Jan 12, 2013, at 12:53 PM, William J. Cheeseman wrote: > I have no prior experience in this area. Can a cursor be created that > animates using Core Animation? I know you can do offscreen rendering with some parts of Core Animation. So perhaps you could have your offscreen rendering machin

Re: Tracking object references

2013-01-12 Thread Ken Thomases
On Jan 12, 2013, at 11:34 AM, Martin Hewitson wrote: > On 12, Jan, 2013, at 12:13 PM, Mike Abdullah > wrote: > >> On 12 Jan 2013, at 09:01, Martin Hewitson wrote: >> >>> Dear list, >>> >>> I'm still struggling to find the cause of a "CoreData could not fulfil a >>> fault" error on saving an

Re: Issue with Core Data Model

2013-01-12 Thread Chris Hanson
On Jan 11, 2013, at 8:12 AM, Alex Zavatone wrote: > Back as of Xcode 4.2, many classes would not implicitly support po in the > debugger unless you wrote your own description method to return the > properties you wanted to expose. What leads you to this conclusion? Many, but not all, classes

Re: Issue with Core Data Model

2013-01-12 Thread Chris Hanson
On Jan 11, 2013, at 5:22 AM, Amy Gibbs wrote: > One of the issues is I called and attribute of an entity 'description'. This > didn't appear as an error in Xcode 3 which I was using, and didn't create a > problem using the app. Now in Xcode 4 the model won't even open due to this > error. I ha

Re: NSTabviewItem View

2013-01-12 Thread koko
On Jan 10, 2013, at 7:23 PM, Graham Cox wrote: > I would say that setting the actual view of a tab view item to something else > isn't a good idea. You should be able to add any subview to it that you like > however. This is what I concluded. I have TabViewItem / TabViewItemView / NSScrollVi

Re: NSTabviewItem View

2013-01-12 Thread Kyle Sluder
On Jan 10, 2013, at 8:41 AM, Koko wrote: > Is it possible to set the view of a tab view item to scroll view? It does not > appear so but I am looking for confirmation one way or the other. Have you tried dragging a scroll view from the Object Library into the Tab View in the Object Hierarchy (

Re: Tracking object references

2013-01-12 Thread Martin Hewitson
On 12, Jan, 2013, at 10:49 PM, Ken Thomases wrote: > On Jan 12, 2013, at 11:34 AM, Martin Hewitson wrote: > >> On 12, Jan, 2013, at 12:13 PM, Mike Abdullah >> wrote: >> >>> On 12 Jan 2013, at 09:01, Martin Hewitson >>> wrote: >>> Dear list, I'm still struggling to find the

Re: Cococa-Dev : was [coredata count not fulfill fault after object delete]

2013-01-12 Thread Martin Hewitson
Now that I know how to get instruments to track retains and releases, I can see what is happening to my entity. I'm still uncertain how to interpret the results, but I see two strange things in the history of the object being deleted: 1) It has a reference count of 3 after all the deletion stu