• 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
NSArrayController duplicate display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController duplicate display


  • Subject: NSArrayController duplicate display
  • From: "Marcus S. Zarra" <email@hidden>
  • Date: Thu, 4 Aug 2005 13:40:48 -0600

I have a set up in my application where the file owner has a reference
to a NSArrayController which controls the display of a table.  When a
menu item is selected the file owner calls add:(id)sender on the
NSArrayController and then instructs the GUI to select a text field.

The issue I am seeing is that when the file owner calls add:(id)sender
the NSArrayController displays two new rows in the attached table
instead of just one.  If I call fetch on the controller the
second/phantom row disappears.  If I connect the NSArrayController's
add method directly to the menu item the problem does not occur.

Has anyone seen this behavior before?  Is there a fix to this (other
than calling fetch immediately after add as this causes a flicker).

Thanks,

Marcus
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: includeing path of files.h on mac in my program
  • Next by Date: Re: NSWorkspace
  • Previous by thread: Creating a dmg (was Re: NSWorkspace)
  • Next by thread: Where does NSTableView get a cell's size from, if not from cellSize?
  • Index(es):
    • Date
    • Thread