Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creating FSRef from vrn, dirID, and name




On Mar 13, 2007, at 2:44 PM, Steve Mills wrote:

On Mar 13, 2007, at 13:39:18, Laurence Harris wrote:

From the File Manager PDF on Apple's web site:

ioNamePtr
A pointer to a pathname. Whenever a function description specifies that ioNamePtr is
used—whether for input, output, or both—you should set this field to point to storage for a
Str255 value (if you’re using a pathname) or to NULL (if you’re not).


Or the online version:

http://gemma.apple.com/documentation/Carbon/Reference/File_Manager/ Reference/reference.html#//apple_ref/c/tdef/FSRefParam

Which docs where you reading that didn't mention it?

The docs for PMMakeFSRefSync, which says nothing about nil:

<http://developer.apple.com/documentation/Carbon/Reference/ File_Manager/Reference/reference.html#//apple_ref/c/func/ PBMakeFSRefSync>

The documentation for the actual struct usually provides more detail. When a struct is used in multiple APIs, as this one is, I look to the API documentation for information specific to the use of the struct in that specific API, as different APIs may use different fields or expect different information in a field. But for general information about the fields in a struct I look at the documentation for the struct. In this case, all APIs that take a FSRefParam accept NULL for ioNamePtr.


Larry _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Creating FSRef from vrn, dirID, and name (From: "Steve Mills" <email@hidden>)
 >Re: Creating FSRef from vrn, dirID, and name (From: "Steve Mills" <email@hidden>)
 >Re: Creating FSRef from vrn, dirID, and name (From: Laurence Harris <email@hidden>)
 >Re: Creating FSRef from vrn, dirID, and name (From: "Steve Mills" <email@hidden>)
 >Re: Creating FSRef from vrn, dirID, and name (From: Laurence Harris <email@hidden>)
 >Re: Creating FSRef from vrn, dirID, and name (From: "Steve Mills" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.