Re: Confused by Syntax
Re: Confused by Syntax
- Subject: Re: Confused by Syntax
- From: Clark Cox <email@hidden>
- Date: Sat, 14 May 2005 10:17:30 -0400
On 5/14/05, Theodore H. Smith <email@hidden> wrote:
> I was looking at a sample for NSToolbar. I saw this method:
>
> - (NSToolbarItem *)toolbar:(NSToolbar *)toolbar
> itemForItemIdentifier:(NSString *)itemIdentifier
> willBeInsertedIntoToolbar:(BOOL)flag
>
> What is going on here? The method name is itemForItemIdentifier,
No, the name is:
"toolbar:itemForIdentifier:willBeInsertedIntoToolbar:"
The method returns (NSToolbarItem*), and takes three parameters:
(NSToolbar*)toolbar
(NSString*)itemIdentifier
(BOOL)flag
--
Clark S. Cox III
email@hidden
http://www.livejournal.com/users/clarkcox3/
http://homepage.mac.com/clarkcox3/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden