• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSLog headaches
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSLog headaches


  • Subject: NSLog headaches
  • From: Steve Gehrman <email@hidden>
  • Date: Fri, 18 May 2001 15:26:59 -0700

I'm have a function...

-(BOOL) isApplication:(NSString*)path
{
NSString* appName;
NSString* type;
BOOL result = [[NSWorkspace sharedWorkspace] getInfoForFile:path application:&appName type:&type];

return (result && [type isEqualToString:@"app"]);
}

to determine if a file is an application. This works fine, but if the file doesn't have an appName associated with it, it writes this to the console...

May 18 15:06:59 MyApp[461] LSGetApplicationForURL() returned -10814 for file /Users/Shared/filename

Why does this routine call NSLog? How can I turn it off? I call this routine for every file I encounter and my console window gets flooded with these messages.

Any ideas?

steve


  • Prev by Date: Re: EOF (was Re: Cocoa CGI)
  • Next by Date: Re: Programmatically adding separator to NSPopupButton?
  • Previous by thread: Re: Programmatically adding separator to NSPopupButton?
  • Next by thread: Chasing/Spinning arrows view
  • Index(es):
    • Date
    • Thread