Re: Question about orderFront/orderBack etc.
Re: Question about orderFront/orderBack etc.
- Subject: Re: Question about orderFront/orderBack etc.
- From: Dave <email@hidden>
- Date: Fri, 20 May 2016 18:31:51 +0100
Hi Quincey,
> On 20 May 2016, at 18:13, Quincey Morris <email@hidden> wrote:
>
> On May 20, 2016, at 07:53 , Dave <email@hidden <mailto:email@hidden>> wrote:
>>
>> I’m thinking I should call “orderFront” on my fake window when the window in the real app gets focus, but do I need to call “orderBack" or whatever on the window that used to be in front?
>
> It’s not clear what you’re asking. If you “order front” one of your windows, the former front window becomes “2nd from front”. It’s a window *list*, so moving one window within the order affects all the others correspondingly.
>
> OTOH, if there’s a possibility that the order of the “real” windows has *multiple* changes by the time you see the front one change, then surely you need to go through your entire “fake” window list and force them to match, in which case, ‘orderWindow:relativeTo:’ would seem like a better API to use.
>
I *should* see all changes in Window Focus so orderFront should suffice but I’ll add some code to check and Assert just in case.
Thanks a lot.
All the Best
Dave
_______________________________________________
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