• 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
NSButtonCell subclass not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSButtonCell subclass not working


  • Subject: NSButtonCell subclass not working
  • From: Andrew Merenbach <email@hidden>
  • Date: Tue, 15 Oct 2002 16:37:56 -0700

I posted a query to the list a few days ago, but it was perhaps a bit too general. I have further narrowed down a problem in my program:

My program has a periodic table of the elements, which I want colored. I have a subclass of NSButtonCell (I call it CBElementButtonCell) that draws in all the relevant data--atomic symbol and number. Each color of button cell has its own subclass of CBElementButtonCell, in which I override drawInteriorWithFrame:. With the old nib file format, this works fine. With the new nib file format, however, it fails, giving me an exception in setFrame:, which I do not directly make use of at all.

This has affected another custom button cell subclass, and switching to the old nib file format causes the error to go away. But I would like to switch to the new format, so I'd appreciate any information anyone can offer.

Take care,
Andrew Merenbach
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: AddressBook - how to search for absence of value?
  • Next by Date: Re: How to avoid a Windows interface on OS X?
  • Previous by thread: Re: non-live window resizing
  • Next by thread: button text
  • Index(es):
    • Date
    • Thread