> On Nov 1, 2010, at 5:20 PM, Bill Cheeseman wrote:
> 
>> 
>> On Nov 1, 2010, at 4:57 PM, Eric Gorr wrote:
>> 
>>> Any chance you (or someone else) could check the first edition of your book?
>> 
>> 
>> OK, you talked me into it. I'm sorry to say that the first edition of my 
>> book did not explain how to suppress the question mark cursor, and I have no 
>> idea how to do it.

In case anyone was interested, the best solution I've been able to find is to 
use the NSContextHelpModeDidActivateNotification to detect when this mode is 
entered.

[[NSNotificationCenter defaultCenter] addObserver:self
                                         
selector:@selector(helpContextModeActivated:)
                                             
name:NSContextHelpModeDidActivateNotification
                                           object:nil];

When the selector is called, simply call:

[NSHelpManager setContextHelpModeActive:NO];

to deactivate the mode and change the cursor back.

Of course, one does see the cursor flicker, which is not desirable, but at 
least I can do what else I need to do.

_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to