Re: NSColorPanel and close box
Re: NSColorPanel and close box
- Subject: Re: NSColorPanel and close box
- From: Matthias Schmidt <email@hidden>
- Date: Sat, 03 Oct 2015 15:22:05 +0900
> Am 01.10.2015 um 18:30 schrieb Matthias Schmidt <email@hidden>:
>
>
>> Am 30.09.2015 um 17:09 schrieb Matthias Schmidt <email@hidden>:
>>
>>
>>> Am 30.09.2015 um 16:11 schrieb Jens Alfke <email@hidden>:
>>>
>>>
>>>
>>>> On Sep 30, 2015, at 12:04 AM, Matthias Schmidt <email@hidden> wrote:
>>>>
>>>> while ([NSColorPanel sharedColorPanelExists]) {
>>>> PA_Yield();
>>>> }
>>>
>>> Yikes! That looks very suspicious. You shouldn't be running loops like that in a Cocoa app. AppKit is event driven, so you handle a single event and return.
>>
so that’s not the reason. If I just open the panel and leave the 4D code, the panel behaves the same.
Is there a way I could catch it, when the User is clicking in the closeBox - it actually becomes dark, is just not doing anything?
thanks
Matthias
_______________________________________________
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