• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [Q] "auto"-incrementing integer attribute in awakeFromInsert
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >[Q] "auto"-incrementing integer attribute in awakeFromInsert (From: "Jon C. Munson II" <email@hidden>)
 >Re: [Q] "auto"-incrementing integer attribute in awakeFromInsert (From: "Sean McBride" <email@hidden>)
 >RE: [Q] "auto"-incrementing integer attribute in awakeFromInsert (From: "Jon C. Munson II" <email@hidden>)

  • Prev by Date: Re: NSDate isEqual to...
  • Next by Date: Re: Send events to AppleScript
  • Previous by thread: RE: [Q] "auto"-incrementing integer attribute in awakeFromInsert
  • Next by thread: [Q] Contextual Menu Items Size
  • Index(es):
    • Date
    • Thread