• 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: Editing a record in a custom view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Editing a record in a custom view


  • Subject: Re: Editing a record in a custom view
  • From: Fritz Anderson <email@hidden>
  • Date: Sat, 23 Nov 2002 13:29:07 -0600

Keep the open windows in an NSMutableDictionary managed by the controller of the table window. The keys would refer to the objects in the table, the values would be the windows (or, better, their controllers). Before opening a table item, check to see if it's already in the table.

Devise a key object class for the objects in your table, and use it for the dictionary keys. NS*Dictionary copies its key objects. That may have performance costs or side effects you don't want.

-- F

On Thursday, November 21, 2002, at 10:29 PM, Ted Lowery wrote:

I've got a table of objects, and I wish to edit them in a custom view. I created a new window, which I can open with the data of a particular record. However, my window is based on some sample code for creating a preference panel, so it works more like an inspector. There is only one instance of my window, and it edits whatever was the last record sent it.

What I'd really like is to be able to open a new window for any record I want to edit, much like Mail opens a new edit window for each message. What would be really boss would be if the user opened the same record again, it would just orderFront the edit window, rather than opening a new one.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Editing a record in a custom view (From: Ted Lowery <email@hidden>)

  • Prev by Date: Re: Two mnemonics in Cocoa
  • Next by Date: Checkbox group box (was Re: Coloring NSBox background?)
  • Previous by thread: Editing a record in a custom view
  • Next by thread: WebServicesCore.framework & SOAP?
  • Index(es):
    • Date
    • Thread