Re: Editing a record in a custom view
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.