• 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
No Reference to Table Column
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: No Reference to Table Column
      • From: Philip Dow <email@hidden>
    • Re: No Reference to Table Column
      • From: Corbin Dunn <email@hidden>
    • Re: No Reference to Table Column
      • From: j o a r <email@hidden>
  • Prev by Date: Re: How to show choose file dialog box in cocoa?
  • Next by Date: Re: QTMovieView and HTTP Redirects
  • Previous by thread: Re: OmniInspector framework overriding application name
  • Next by thread: Re: No Reference to Table Column
  • Index(es):
    • Date
    • Thread