which seems somewhat ludicrous. There must be a smarter way?
Yes. What I usually do is add a category to NSView that returns the
first superview that is of a certain class, like this: (warning -
written in Mail, untested, you know the rest)
- (id)firstSuperviewOfClass:(Class)aClass
{
id aSuperview = [self superview];
while (aSuperview != nil)
{
if ([aSuperview isMemberOfClass:aClass])
{
break;
}
aSuperview = [aSuperview superview];
}
return aSuperview;
}
Then you can pass in the browser's class and message the browser that
way...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden