FROM : Fabian Schuiki
DATE : Tue Aug 01 17:51:33 2006
Thanks, haven't seen them when I was going trough NSEvent!
So there's no function that does stuff like that automatically? I'll
have a look at that unichar enum.
Thanks a lot,
Fabian
Fabian Schuiki
<email_removed>
CEO
Am 01.08.2006 um 17:38 schrieb Jonathan Grynspan:
> Take a look at the enums near the bottom of NSEvent.h. They include
> unichar values for most function/control keys. Compare them to the
> first character in the result of -characters or -
> charactersIgnoringModifiers:
>
> if ([[anEvent characters] length] > 0 && [[anEvent characters]
> characterAtIndex: 0] == NSDeleteFunctionKey) {
> /* do stuff here */
> }
>
> -Jonathan Grynspan
>
> On 1-Aug-06, at 11:32 AM, Fabian Schuiki wrote:
>
>> I already use them, but there are several special characters for
>> Keys like Escape, Backspace, Delete, Arrows etc.
>>
>> Best,
>> Fabian
>>
>> Fabian Schuiki
>> <email_removed>
>> CEO
>>
>>
>> Am 01.08.2006 um 16:57 schrieb Jonathan Grynspan:
>>
>>> Take a look at the -characters and -charactersIgnoringModifiers
>>> messages belonging to NSEvent. They should do what you're looking
>>> for. :)
>>>
>>> -Jonathan Grynspan
>>>
>>> On 1-Aug-06, at 9:19 AM, Fabian Schuiki wrote:
>>>
>>>> Hi,
>>>>
>>>> Is it somehow possible to convert an NSEvent's keyCode and
>>>> modifierFlags to an NSString, containing a representation of
>>>> that keyCode and modifierFlags, such as the keyEquivalent
>>>> representation in an NSMenuItem?
>>>> This has to be possible, hasn't it?
>>>>
>>>> Best Regards,
>>>> Fabian Schuiki
>>>>
>>>> Fabian Schuiki
>>>> <email_removed>
>>>>
>>>>
>>>> _______________________________________________
>>>> MacOSX-dev mailing list
>>>> <email_removed>
>>>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>>>
>>> _______________________________________________
>>> MacOSX-dev mailing list
>>> <email_removed>
>>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>>
>> _______________________________________________
>> MacOSX-dev mailing list
>> <email_removed>
>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>
DATE : Tue Aug 01 17:51:33 2006
Thanks, haven't seen them when I was going trough NSEvent!
So there's no function that does stuff like that automatically? I'll
have a look at that unichar enum.
Thanks a lot,
Fabian
Fabian Schuiki
<email_removed>
CEO
Am 01.08.2006 um 17:38 schrieb Jonathan Grynspan:
> Take a look at the enums near the bottom of NSEvent.h. They include
> unichar values for most function/control keys. Compare them to the
> first character in the result of -characters or -
> charactersIgnoringModifiers:
>
> if ([[anEvent characters] length] > 0 && [[anEvent characters]
> characterAtIndex: 0] == NSDeleteFunctionKey) {
> /* do stuff here */
> }
>
> -Jonathan Grynspan
>
> On 1-Aug-06, at 11:32 AM, Fabian Schuiki wrote:
>
>> I already use them, but there are several special characters for
>> Keys like Escape, Backspace, Delete, Arrows etc.
>>
>> Best,
>> Fabian
>>
>> Fabian Schuiki
>> <email_removed>
>> CEO
>>
>>
>> Am 01.08.2006 um 16:57 schrieb Jonathan Grynspan:
>>
>>> Take a look at the -characters and -charactersIgnoringModifiers
>>> messages belonging to NSEvent. They should do what you're looking
>>> for. :)
>>>
>>> -Jonathan Grynspan
>>>
>>> On 1-Aug-06, at 9:19 AM, Fabian Schuiki wrote:
>>>
>>>> Hi,
>>>>
>>>> Is it somehow possible to convert an NSEvent's keyCode and
>>>> modifierFlags to an NSString, containing a representation of
>>>> that keyCode and modifierFlags, such as the keyEquivalent
>>>> representation in an NSMenuItem?
>>>> This has to be possible, hasn't it?
>>>>
>>>> Best Regards,
>>>> Fabian Schuiki
>>>>
>>>> Fabian Schuiki
>>>> <email_removed>
>>>>
>>>>
>>>> _______________________________________________
>>>> MacOSX-dev mailing list
>>>> <email_removed>
>>>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>>>
>>> _______________________________________________
>>> MacOSX-dev mailing list
>>> <email_removed>
>>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>>
>> _______________________________________________
>> MacOSX-dev mailing list
>> <email_removed>
>> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>
| Related mails | Author | Date |
|---|---|---|
| Fabian Schuiki | Aug 1, 15:19 | |
| Jonathan Grynspan | Aug 1, 16:57 | |
| Fabian Schuiki | Aug 1, 17:32 | |
| Fabian Schuiki | Aug 1, 17:51 | |
| Jonathan Grynspan | Aug 1, 18:16 | |
| Fabian Schuiki | Aug 1, 18:20 |






Cocoa mail archive

