Re: Open Recent menu
Re: Open Recent menu
- Subject: Re: Open Recent menu
- From: Andrew Thompson <email@hidden>
- Date: Tue, 20 Jul 2004 09:00:04 -0400
On Jul 20, 2004, at 12:18 AM, Sam Wilkins wrote:
Oh my God, I figured it out.
- (BOOL)application:(NSApplication *) openFile:(NSString *)filename
Was what I called my method, I can't believe I went through all of this
just to notice I was missing the argument name after the NSApplication
* argument. WTF did it compile?
C has always worked that way. Its an idiom for making it clear you're
not going to use a parameter to a function.
Here, clearly you're not going to use the first (int) parameter,
because you didn't bother to name it.
function(int, float foo) {
//do something with foo
}
registerForCallback(&function);
I would guess Objective-C allows things like this to compile to be
stylistically compatible with C, though you've discovered it causes
problems in your case.
AndyT (lordpixel - the cat who walks through walls)
A little bigger on the inside
(see you later space cowboy ...)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.