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: Can't return proper saving file name on OS X



You need to use new APIs from NavServices 3.0 - NavCreatePutDialog (if I
remember correctly the name).

NavPutFile can't handle unicode properly on OS X.

Check Carbon reference on Apple's site.

Good luck!

Vladimir

on 10/3/01 6:23 PM, Norio Ota at email@hidden wrote:

> I'm a Japanese developer and I recently found very peculiar thing
> on OS X(10.0.4). I've never chacked with OS X.1 yet.
>
> The procudure I took was the following:
> 1. called "NavGetDefaultDialogOptions(NavDialogOptions)"
> 2. set NavDialogOptions's saveFileName to Japanese characters.
> 3. called NavPutFile
> 4. maked sure the file name set at previous steps was displayed
> in a save file name field and it was selected.
>
> case A.
> 1. press "Save" button
>
> Result: -47 error because the file name was "".
> NavReplyRecord's keyCode was Roman
> -----------------------------------------------------------------
> case B
> 1. insert or append English characters in the save file name field
> and press "Save" button
>
> Result: -47 error because the file name was "".
> NavReplyRecord's keyCode was Roman
> -----------------------------------------------------------------
> case C
> 1. insert or append Japanese characters in the save file name field
> and press "Save" button
>
> Result: noErr and file name was the string in the field.
> NavReplyRecord's keyCode was Japanese
> -----------------------------------------------------------------
> case D
> 1. replace all with English characters in the save file name field
> and press "Save" button
>
> Result: noErr and file name was the string in the field.
> NavReplyRecord's keyCode was Roman
>
> How should I do for avoiding case A and B?
> I'd like to set NavReplyRecord's keyCode to Japanese before NavSrvc
> returns a saving file name, does someone know that?
>
> I'd appreciate you if any suggestions or advices.
> Norio Ota
> _______________________________________________
> nav-serv-developers mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/nav-serv-developers




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.