• 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
NSDocument fileURL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDocument fileURL


  • Subject: NSDocument fileURL
  • From: Pax <email@hidden>
  • Date: Thu, 23 Jan 2014 21:12:50 +0000

Hopefully this is a nice, easy, problem for you to ponder on a Thursday evening.

I'm opening a document as follows:

- (BOOL)readFromData:(NSData *)pData
              ofType:(NSString *)pTypeName
               error:(NSError **)pOutError
{

    if ([pTypeName compare:@"CPro"] == NSOrderedSame)
    {
        //Nothing to do (yet)
    }
    else if ([pTypeName compare:@"Zip"] == NSOrderedSame)
    {
        contentData = pData;
        decode = YES;
        return YES;
    }
    return NO;
}

Later (in windowControllerDidLoadNib), I try to get the file path - but I turn up a blank (it returns null):

NSLog(@"%@",[self fileURL]);

Very strange.  And yet the file does get processed correctly - it's just that I can't display all the useful information that I'd like to be able to display.

Any ideas?

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSDocument fileURL
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: How to choose different implementations of an object method at runtime?
  • Next by Date: Re: File association using file magic
  • Previous by thread: Re: Window live resize: which edge is being dragged?
  • Next by thread: Re: NSDocument fileURL
  • Index(es):
    • Date
    • Thread