Skip navigation.
 
mlRe: Editing the HUD window text edit question
FROM : Uli Kusterer
DATE : Sun Jul 23 11:18:33 2006

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

Related mailsAuthorDate
mlEditing the HUD window text edit question CoLo0LoGo Jul 22, 20:31
mlRe: Editing the HUD window text edit question Uli Kusterer Jul 23, 11:18
mlRe: Editing the HUD window text edit question CoLo0LoGo Jul 23, 22:41