Re: Help on startup volume name and NSEvent characters
Re: Help on startup volume name and NSEvent characters
- Subject: Re: Help on startup volume name and NSEvent characters
- From: Jean Bovet <email@hidden>
- Date: Sat, 06 Apr 2002 12:52:23 +0200
>
At 07:04 -0800 05/04/2002, email@hidden wrote:
>
> Date: Fri, 05 Apr 2002 16:01:35 +0200
>
> From: Jean Bovet <email@hidden>
>
>
>
> Can anyone tell me how to get the name of the startup volume ? I can get the
>
> other volumes name via NSWorkspace mountedLocalVolumePaths call, but I
>
> cannot get the name of the startup volume (other than "/").
>
>
[[NSFileManager defaultManager] displayNameAtPath:@"/"]
Thank you very much!
>
>
>
> Also, how can I get special characters like ^ with NSEvent (within keydown
>
> for example) ?
>
>
The special character didn't make it through the list manager... but in my
>
experience there's no special handling needed, -[NSEvent characters] will
>
return an NSString* with the special character inside.
>
In fact I need to get special characters because I'm writing an equation
editor and characters like ^ must be handled: the NSString* returned by
[NSEvent characters] is empty for those specials characters... any idea ?
Regards,
Jean Bovet
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.