Re: filtering contents for NSBrowser
Re: filtering contents for NSBrowser
- Subject: Re: filtering contents for NSBrowser
- From: Scott Anguish <email@hidden>
- Date: Sat, 10 Aug 2002 05:16:39 -0400
Doh! That should have been
- (BOOL)isVisible {
// Make this as sophisticated for example to hide more files you
don't think the user should see!
NSString *lastPathComponent = [self lastPathComponent];
if ([lastPathComponent length])
{
if ([lastPathComponent characterAtIndex:0]!='.')
return NO;
if ([lastPathComponent characterAtIndex:0]!='A')
return NO;
}
return YES;
}
notice the default to YES.. otherwise you see nothing
_______________________________________________
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.