FROM : Rosyna
DATE : Tue Dec 28 15:38:03 2004
A lot of Cocoa devs will go through extraordinary lengths just to
avoid Carbon. And it doesn't matter to them that their "solution"
just calls the Carbon APIs underneath it ;-).
Ack, at 12/28/04, M. Uli Kusterer said:
>At 12:50 Uhr +0100 28.12.2004, Stephan Burlot wrote:
>>The result is correct, it just gives you what you ask for.
>>
>>Use this script to get all application support paths:
>>
>>"POSIX path of (path to application support from system domain) &
>>\",\" & POSIX path of (path to application support from user
>>domain) & \",\" & POSIX path of (path to application support from
>>local domain) & \",\" & POSIX path of (path to application support
>>from network domain) & \",\" & POSIX path of (path to application
>>support from Classic domain)"
>
>Urk. That's a comma-delimited text string containing all the paths
>... you definitely don't want that. If any of the path items
>contained a comma in its name, your app would fail (they don't now,
>but the whole point of this is to be prepared for future changes).
>
>Why don't you just use FSFindFolder() and be done with it. No use
>wasting the user's CPU cycles by firing up AppleScript and employing
>scripting hacks if there's a reliable programming API built-in.
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
DATE : Tue Dec 28 15:38:03 2004
A lot of Cocoa devs will go through extraordinary lengths just to
avoid Carbon. And it doesn't matter to them that their "solution"
just calls the Carbon APIs underneath it ;-).
Ack, at 12/28/04, M. Uli Kusterer said:
>At 12:50 Uhr +0100 28.12.2004, Stephan Burlot wrote:
>>The result is correct, it just gives you what you ask for.
>>
>>Use this script to get all application support paths:
>>
>>"POSIX path of (path to application support from system domain) &
>>\",\" & POSIX path of (path to application support from user
>>domain) & \",\" & POSIX path of (path to application support from
>>local domain) & \",\" & POSIX path of (path to application support
>>from network domain) & \",\" & POSIX path of (path to application
>>support from Classic domain)"
>
>Urk. That's a comma-delimited text string containing all the paths
>... you definitely don't want that. If any of the path items
>contained a comma in its name, your app would fail (they don't now,
>but the whole point of this is to be prepared for future changes).
>
>Why don't you just use FSFindFolder() and be done with it. No use
>wasting the user's CPU cycles by firing up AppleScript and employing
>scripting hacks if there's a reliable programming API built-in.
--
Sincerely,
Rosyna Keller
Technical Support/Holy Knight/Always needs a hug
Unsanity: Unsane Tools for Insanely Great People
| Related mails | Author | Date |
|---|---|---|
| Georg Tuparev | Dec 27, 19:17 | |
| Shaun Wexler | Dec 27, 19:36 | |
| Bob Ippolito | Dec 27, 19:39 | |
| Sean McBride | Dec 27, 20:03 | |
| Georg Tuparev | Dec 27, 20:42 | |
| Sean McBride | Dec 27, 21:35 | |
| Rosyna | Dec 28, 00:28 | |
| John Stiles | Dec 28, 00:41 | |
| Rosyna | Dec 28, 00:46 | |
| BK | Dec 28, 01:49 | |
| John Stiles | Dec 28, 01:57 | |
| Stephan Burlot | Dec 28, 11:11 | |
| Georg Tuparev | Dec 28, 11:51 | |
| Stephan Burlot | Dec 28, 12:50 | |
| M. Uli Kusterer | Dec 28, 15:00 | |
| Stephan Burlot | Dec 28, 15:25 | |
| Rosyna | Dec 28, 15:38 | |
| M. Uli Kusterer | Dec 28, 15:45 |






Cocoa mail archive

