• 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: Table column header not highlighted at first
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Table column header not highlighted at first


  • Subject: Re: Table column header not highlighted at first
  • From: Graham Cox <email@hidden>
  • Date: Sat, 16 Aug 2008 23:26:24 +1000


On 16 Aug 2008, at 1:36 am, Graham Cox wrote:

I need to figure out why the second table works even though I'm not doing anything special (and none of the autosave stuff you mentioned either).


OK, very simple: it was set in the nib. I didn't realise that presetting this in the nib was possible, so I must have set it up that way more or less by accident. OK, my understanding has improved... (Thanks!)


Now I have a new problem which is somewhat related (same tables and to do with these sort descriptors).


Table has two columns, one of which contains strings, the other, checkboxes. I set up a sort descriptor for the strings column and that works great. Then I came to add a sort descriptor to the checkbox column. This requires a custom compare method so I wrote one, then set that up as the sort descriptor's selector, with 'self' as the keyed property.

Something weird happens in IB. As soon as I add this information to the column, my two column headers seem to get locked together - they both turn blue at the same time, and clicking either one inverts both of them together. I can't seem to fix this - even scrapping the table and starting over I end up in the same fix. This is in IB long before my own code gets a shot at it - and when it does it's the same story - the columns lock together.

What on earth is going on, and how to fix it?

tia,

Graham
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Table column header not highlighted at first
      • From: Corbin Dunn <email@hidden>
    • Re: Table column header not highlighted at first
      • From: Jason Wiggins <email@hidden>
References: 
 >Table column header not highlighted at first (From: Graham Cox <email@hidden>)
 >Re: Table column header not highlighted at first (From: Corbin Dunn <email@hidden>)
 >Re: Table column header not highlighted at first (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Problem with NSImage and .PNG file
  • Next by Date: Re: Opening an external file in a external application
  • Previous by thread: Re: Table column header not highlighted at first
  • Next by thread: Re: Table column header not highlighted at first
  • Index(es):
    • Date
    • Thread