Re: Checkboxes and NSBox titles
Re: Checkboxes and NSBox titles
- Subject: Re: Checkboxes and NSBox titles
- From: "e.sammer" <email@hidden>
- Date: Tue, 12 Jun 2001 20:05:50 -0400
Bill Cheeseman wrote:
The newest version of the Aqua HI Guidelines states that it is permissible
to use a checkbox or a pop-up menu as the title of an NSBox. But the current
version of Interface Builder doesn't provide a means to do so.
Presumably, it can be done programmatically. Could somebody give me a head
start on how to do this? NSBox has a method, titleCell, that returns the
cell holding the title. I imagine that I want to substitute an NSButtonCell
for that cell, but I'm not sure how to go about it.
In my experience, most places where one is "allowed" to specify a
different cell class,
there is a - setCellClass: or - setCell: method availble. (See NSBrowser
or NSTableView
for the standard deffinitions). I haven't checked the docs lately, but
there might be something
similar in NSBox (or something that it inherits from...)
--
e.sammer
email@hidden