• 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: TransformProcessType() still doesn't show menu (Bug ID# 5905139)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TransformProcessType() still doesn't show menu (Bug ID# 5905139)


  • Subject: Re: TransformProcessType() still doesn't show menu (Bug ID# 5905139)
  • From: Mark Munz <email@hidden>
  • Date: Fri, 27 May 2011 12:30:24 -0700

Yes, this is an every increasingly annoying bug. I filed a similar
issue (#9402554) and based on the duplicate bug # referenced, it
appears it has been around a while.

I've tried most of the solutions offered by developers before (from
AppleScripts to setting focus on the dock) and none have worked for
me. I then took a very inelegant approach to this:

Launch a new instance of same app (you could add a special arg to
indicate launch as foreground app).
Then quit the old agent.
In applicationWillFinishLaunching: if your arg is there,  call
TransformProcessType(). It seems that applicationWillFinishLaunching:
is early enough in the launch that the menubar will update properly
when you transform the process type.

If you needed to keep data, you could put it up on a private
NSPasteboard and grab it again.

This has been the most reliable way of converting an agent to a
foreground app that I've found. But, IMHO, it is also the ugliest
approach.

I really hope Apple just fixes this issue once and for all.

Mark

On Fri, May 27, 2011 at 11:01 AM, Jerry Krinock <email@hidden> wrote:
> Thank you, Jim.  Unfortunately your workaround doesn't work in my app either.
>
> I presume it will work in a simple app.  I'm tired of poking, so I'll have to do the usual drill of rebuilding a replica of my app from a simple app piece by piece and see where it breaks :(
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
> This email sent to email@hidden
>



--
Mark Munz
unmarked software
http://www.unmarked.com/
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: TransformProcessType() still doesn't show menu (Bug ID# 5905139)
      • From: Eric Schlegel <email@hidden>
References: 
 >TransformProcessType() still doesn't show menu (Bug ID# 5905139) (From: Jerry Krinock <email@hidden>)
 >Re: TransformProcessType() still doesn't show menu (Bug ID# 5905139) (From: Anders Norlander <email@hidden>)
 >Re: TransformProcessType() still doesn't show menu (Bug ID# 5905139) (From: Jerry Krinock <email@hidden>)
 >Re: TransformProcessType() still doesn't show menu (Bug ID# 5905139) (From: Jim Correia <email@hidden>)
 >Re: TransformProcessType() still doesn't show menu (Bug ID# 5905139) (From: Jerry Krinock <email@hidden>)

  • Prev by Date: -usedRectForTextContainer: and attachments
  • Next by Date: Re: TransformProcessType() still doesn't show menu (Bug ID# 5905139)
  • Previous by thread: Re: TransformProcessType() still doesn't show menu (Bug ID# 5905139)
  • Next by thread: Re: TransformProcessType() still doesn't show menu (Bug ID# 5905139)
  • Index(es):
    • Date
    • Thread