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: DirectoryServices - dsGetDirNodeName() starts at index 1?



Never-mind, I've found its the buffer that starts at zero. The documentation/example should be updated.


On Wednesday, July 30, 2003, at 11:26 AM, m31 wrote:

You are of course trying to retrieve the node at index 6,
and not stopping at 5, yes?

Yes, given the following example from the documentation:
http://developer.apple.com/documentation/Networking/Conceptual/ DirectoryServices/DirServ-12.html
Will print the following output:

Directory node count is: 6
# 1 /AppleTalk/*
# 2 /NetInfo/DefaultLocalNode
# 3 /NetInfo/root
# 4 /Rendezvous/local
# 5 /SLP/DEFAULT

if you follow the logic on the example you'll see what I mean.
Its very misleading. Even changing the for loops test
expression to be i < nodeCount, it still will print the same.
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.



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.