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

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

  • Follow-Ups:
    • Re: No Reference to Table Column
      • From: Philip Dow <email@hidden>
References: 
 >No Reference to Table Column (From: Philip Dow <email@hidden>)

  • Prev by Date: Re: QTMovieView and HTTP Redirects
  • Next by Date: Re: newbie interface problem
  • Previous by thread: No Reference to Table Column
  • Next by thread: Re: No Reference to Table Column
  • Index(es):
    • Date
    • Thread