• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: orderFrontCharacterPalette works... but with one potentially untenable requirement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: orderFrontCharacterPalette works... but with one potentially untenable requirement


  • Subject: Re: orderFrontCharacterPalette works... but with one potentially untenable requirement
  • From: Joshua Scott Emmons <email@hidden>
  • Date: Wed, 25 Jan 2006 14:22:35 -0600

If I create a new user, and run the application on their account, this
call does nothing. If I select "Show Character Palette" from the
International menu, then the call to NSApplication.
orderFrontCharacterPalette works fine every time after that.

I am having a different experience (OS X 10.4.4, XCode 2.2).

I create a new Cocoa Application in XCode. I put one button on it in IB. I create a subclass of NSObject called MyController. I give MyController an IBAction of -clicked:. I instantiate MyController in IB. I wire my one button to -clicked: in IB. -clicked:'s implementation is as follows:

-(IBAction)clicked:(id)sender{
   [[NSApplication sharedApplication] orderFrontCharacterPalette:self];
}

When I run this application as a new user, the character pallet pops up just fine. The strange thing is, if the input menu (the one that looks like a nation's flag) isn't already present in the menu bar, pressing this button forces it to appear there with "Hide Character Palette" being the only enabled option. When I close the character palette, the input menu persists in my menu bar.

Interestingly, clicking on Edit -> Special Characters… also brings up the character palette, but DOES NOT force the input menu to show. It looks like Special Characters… is added by the OS as it doesn't show up in any of the nibs I've seen. It also seems as though Special Characters… does not use -orderFrontCharacterPalette: to display the palette (seeing as it can do so without forcing the input menu item to appear).

So, to sum up: unlike you, I am able to display a character palette with -orderFrontCharacterPalette: even with a fresh new user. Like you, I find that -orderFrontCharacterPalette: has some strange undesirable side effects that clicking on Edit -> Special Characters… does not produce.


Really curious to learn more about this, -Joshua Emmons _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: orderFrontCharacterPalette works... but with one potentially untenable requirement
      • From: Aki Inoue <email@hidden>
References: 
 >orderFrontCharacterPalette works... but with one potentially untenable requirement (From: Eric Crichlow <email@hidden>)

  • Prev by Date: Re: Something faster than [NSImage drawInRect:...]?
  • Next by Date: RE: Controlling Zoom size
  • Previous by thread: orderFrontCharacterPalette works... but with one potentially untenable requirement
  • Next by thread: Re: orderFrontCharacterPalette works... but with one potentially untenable requirement
  • Index(es):
    • Date
    • Thread