• 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
NSOutlineView + NSButtonCell weird bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineView + NSButtonCell weird bug


  • Subject: NSOutlineView + NSButtonCell weird bug
  • From: Graham Cox <email@hidden>
  • Date: Thu, 10 Feb 2011 13:47:15 +1100

I've had this problem show up sporadically for some time, but now I can't get rid of it.

I have an NSOutlineView with several columns, two of which have checkbox behaviour. In these columns I set a NSButtonCell in IB having the checkbox behaviour, and in fact I want to have custom images rather than the standard checkbox, but since the bug shows up with the standard checkbox I'll leave it at that.

In IB, all appears fine:

http://apptree.net/images/Screen shot 2011-02-10 at 1.34.54 PM.png

But when I load and run the nib, all is not fine - the checkboxes are replaced by some very ugly buttons:

http://apptree.net/images/Screen shot 2011-02-10 at 1.35.17 PM.png

In the past when this occurred, I found that if I triggered a need to save in IB by performing some dummy edit, and resaved the nib, it would often be enough to correct the issue. Sometimes it took a couple of tries. However, now it seems permanently broken. This resaving trick might indicate a bug with writing out these cells in IB, or perhaps with parsing the xib to make the nib, who knows.

However, I also tried forcing a bunch of settings on the cells in code after they are loaded in -awakeFromNib, and that doesn't seem to help either.

I'm really stuck now. Can anyone suggest a way to fix this, or anything to try?


--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: NSOutlineView + NSButtonCell weird bug
      • From: Graham Cox <email@hidden>
  • Prev by Date: NSSearchfield help
  • Next by Date: Abstract Text Example and Question
  • Previous by thread: Re: NSSearchfield help
  • Next by thread: Re: NSOutlineView + NSButtonCell weird bug
  • Index(es):
    • Date
    • Thread