On 3/18/09 11:52 AM, Jon C. Munson II said:

>What happens is the attribute is set with the correctly incremented number.
>However, the tableview that is used to manage this entity displays two rows
>every time a new entity is inserted.

Fetching from awakeFromInsert is discouraged.  There are some bugs/
problems.  If you have an NSArrayController that will make use of the
object you're inserting (seems to be your case), it will receive
duplicate KVO notifications.  Please file a bug with a repro case to Apple.

>So, my question is, how do I resolve the two-row error, or, is there a
>better way?

You're best bet is using performSelector:withObject:afterDelay: in
awakeFromInsert, that way you're not fetching in awakeFromInsert.

--
____________________________________________________________
Sean McBride, B. Eng                 s...@rogue-research.com
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to