Re: Editing the HUD window text edit question
Re: Editing the HUD window text edit question
- Subject: Re: Editing the HUD window text edit question
- From: Uli Kusterer <email@hidden>
- Date: Sun, 23 Jul 2006 11:18:33 +0200
Am 22.07.2006 um 20:31 schrieb CoLo0LoGo:
Note how do I use the options that do not have (void)'s and have the
BOOL on the left of the method like so
//[textField YES:allowsEditingTextAttributes];
Since
– setSelectable:
– isSelectable
look the same but only setSelectable works
Read Apple's book on Objective C. It's a PDF you can download from
developer.apple.com. Then you'll find out that they *don't* look the
same. To correctly use a method call, you need its entire signature,
including return type and parameter types. Once you know those, you
also need to know that the colons are part of the method name, and
that parameters always go *after* the colons.
Stuff like you wrote above with the YES before the method name
don't make sense, at all.
If you're just starting out with Cocoa, I recommend getting Aaron
Hillegass' book on Cocoa and reading Apple's Objective C book. The
latter is sadly rather dry, but it covers everything you need to know
about the language itself if you ever have questions, while
Hillegass' book makes it easier to understand why certain stuff is
done, and what for.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden