_openRecentDocument undocumented?
_openRecentDocument undocumented?
- Subject: _openRecentDocument undocumented?
- From: "Theodore H. Smith" <email@hidden>
- Date: Mon, 25 Jul 2005 20:55:37 +0100
Is the selector _openRecentDocument: undocumented for a reason? I see
that it has an underscore, which generally means "private", so it
looks like Apple have a good reason to not document it, seeing as
they are certain enough about it to give it an underscore.
I ask, because I have a recent items menu, which items can actually
be disabled when it is supposed to be enabled.
The recent items menu was disabling, because in my validateMenuItem
NSApp delegate method, I was returning false for it.
My validateMenuItem worked something like this:
SEL s = [MyMenuItem action];
if (s == @selector(sel1:) and [self Test1]) {
return true;
} else if (s == @selector(sel2:) and [self Test2) {
return true;
} else if (s = @selector(aMenuThatShouldAlwaysBeEnabled) {
return true;
}
return false;
Now, I "fixed" that by checking for the selector
"_openRecentDocument:", but that doesn't quite seem right to me :o)
So perhaps I'm using the wrong fix.
Is perhaps my approach in validateMenuItem wrong?
--
http://elfdata.com/plugin/ Industrial strength string processing,
made easy.
"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."
_______________________________________________
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