Re: No Reference to Table Column
Re: No Reference to Table Column
- Subject: Re: No Reference to Table Column
- From: j o a r <email@hidden>
- Date: Wed, 5 Oct 2005 16:29:53 +0200
On 5 okt 2005, at 16.11, Philip Dow wrote:
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?
Your problems is probably that the column is deallocated when it is
removed from the table.
If you remove the column from the table view, effectively taking over
ownership of the column from the table view, you need to retain it.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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