Re: Colored Buttons?
Re: Colored Buttons?
- Subject: Re: Colored Buttons?
- From: "Erik M. Buck" <email@hidden>
- Date: Sun, 4 Nov 2001 16:47:38 -0600
>
On Sunday, November 4, 2001, at 03:53 PM, Erik M. Buck wrote:
>
>
>
> You can add images to the "images" suitcase in IB if you want
>
>
Suitcase? I find nothing that looks like a suitcase, and the IB Help has
>
nothing about a suitcase!
Sorry. It is a tab now.
>
>
>
> A bare minimum RTFM is in order.
>
>
>
Sorry, but damnit I do try. After looking over the docs on NSButton I
>
think I might understand how this is done, but I'm not sure at this stage.
>
In any event, making a stupid button red or whatever seems like a lot
of
>
work for a result of so little consequence. Is this a plot to encourage
>
people to adhere to Apple's idea of what looks good?
Sorry, but damnit, you are not trying. The documentation on NSButton and
its superclass NSControl and its superclass NSView and its superclass
NSResponder and its superclass NSObject are all VERY well documented and
have been for many years! Similarly, NSButtonCell, NSActionCell, and NSCell
are all well documented.
Here is the result of a google search on NSButton image
http://www.google.com/search?as_q=NSButton+image&num=100&btnG=Google+Search&
as_epq=&as_oq=&as_eq=&lr=&as_ft=i&as_filetype=&as_qdr=all&as_occt=any&as_dt=
i&as_sitesearch=&safe=off
The very first item is
http://developer.apple.com/techpubs/macosx/Cocoa/Reference/ApplicationKit/Ob
jC_classic/Classes/NSButton.html
The relevant part is
Setting the images
- alternateImage
- image
- imagePosition
- setAlternateImage:
- setImage:
- setImagePosition:
THE SECOND RESULT TITLED "Setting a Button's Image" IS EXACTLY WHAT YOU
WANT! IT EVEN USES A RED STOP SIGN FOR GOD'S SAKE!
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/Programmin
gTopics/Button/Tasks/SettingButtonImage.html
>
>
As for the FM: it does not exist as such. What does exist is incomplete
The FM is comprehensive in this instance. Only things added to Openstep
since Rhapsody DR1 are poorly documented.
>
and often cryptic docs on the various classes, legacy stuff scattered all
>
over hell and gone, marginal tutorials from Apple, some other
There are many excellent tutorials. Requiring you to read about a class's
superclass is perfectly reasonable. Do you just not like object orientation
? There are areas of bad documentation, but items like NSButton that have
been in Openstep and NeXTstep for 12 years are very well documented. Non of
the documentation on this subject is scattered. Even without documentation,
if you simply look at the attributes tab of the "Info Panel" in IB with a
button selected it is obvious how to set the image of a button and its
alternate image.
>
better-than-marginal tutorials from other folks, an ill-advise book called
>
"Learning Cocoa," a worthless tome from Jesse Feiler, and for someone like
>
me who knows how to get his hands on an advance copy, a book out of the
>
Big Nerd Ranch that is a giant leap beyond the bug-ridden Apple/O'Reilly
>
nonsense. And this list! Thank you again, but please remember in future
>
that if I have not RTFM, it's because I have not been able to find the
>
bloody thing.
Then you are not trying very hard. I for one am getting tired of people
going to these lists without doing a minimal RTFM or even a google search
first. If this is going to be a totally incompetent lazy newbie list from
now on, I will take my time and expertise elsewhere.
>
>
Brian E. Howard
>
Cocoa Cult Central
>
wishing for a FMTR