Re: [Q] "auto"-incrementing integer attribute in awakeFromInsert
Re: [Q] "auto"-incrementing integer attribute in awakeFromInsert
- Subject: Re: [Q] "auto"-incrementing integer attribute in awakeFromInsert
- From: "Sean McBride" <email@hidden>
- Date: Fri, 20 Mar 2009 20:14:47 -0400
- Organization: Rogue Research Inc.
On 3/19/09 10:09 AM, Jon C. Munson II said:
>I did some digging and found that the real issue is the call for
>processPendingChanges that apparently is called via the executeFetch.
>According to what I read this is standard behavior.
>
>So, I'd have to say it isn't a "bug" in this case.
Well, 'bug' can mean many things. :) Months ago, I used a DTS incident
on this topic, and was told by DTS that the 'item appearing twice in the
table if you fetch in awakeFromInsert' situation (that you saw) is a bug
in NSArrayController.
I agree with you that it is kludgy to have to use
performSelector:withObject:afterDelay:. Such a situation is exactly
when you should file a bug/enhancement request.
Have you tested undo after switching to
performSelector:withObject:afterDelay:? You may find that undo will
only undo the setting of the 'auto-incremented' integer attribute. I
suspect this is because performSelector:withObject:afterDelay: runs on a
different pass through the event loop.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden