No Reference to Table Column
No Reference to Table Column
- Subject: No Reference to Table Column
- From: Philip Dow <email@hidden>
- Date: Wed, 5 Oct 2005 16:11:27 +0200
I have an IBOutlet connected to an NSTableColumn in my nib file. It
is possible to remove this column from the NSTableView during
runtime. The table's state is saved by way of the autosave name,
which I am setting in IB. When the program runs the next time, the
column does not appear in the view. All good.
There are times when I need to add that column back to the table, a
user preference type thing. However, trying to use the IBOutlet to
reinsert the removed column throws any number of errors. During
debug, I check the pointer to this column and it comes up as various
objects at various addresses, sometimes an NSString, sometimes an
NSNumber, sometimes nothing in particular, even though it is typecast
as an IBOutlet *NSTableColumn.
Does the reference to an IBOutlet column not function if the table's
autosave settings do not include that column, even though the column
is in the NIB file originally? If so, is there a way to maintain a
reference to this column regardless the autosave setting?
-Phil
http://phildow.net
_______________________________________________
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