PLEASE PLEASE PLEASE don’t put up a modal dialog in the middle of a drag. All
drags are done on the main thread. This includes calls to NSDraggingSource,
NSDraggingDestination, NSFilePromiseProvider, NSFilePromiseReceiver methods and
drag methods from NSTableView/NSOutlineVIew & NSCollectionVie
> On Sep 10, 2018, at 12:17 PM, Ben Kennedy wrote:
>
> Son of a gun. Thanks for elucidating this Richard.
Actually Andy Lee was right on when he suggested "it may depend on the setting
in System Preferences that governs whether all controls can get keyboard
focus". However I could not see wh
> On 10 Sep 2018, at 11:06 am, Richard Charles wrote:
>
> On my development machine running 10.12.6 pressing the spacebar will dismiss
> a simple NSAlert. This is because in System Preferences > Keyboard >
> Shortcuts > Full Keyboard Access > All Controls was selected. (For some
> reason it to
> On Sep 8, 2018, at 6:25 PM, Andy Lee wrote:
>
> I don't know where or whether it's documented, but it's not new.
> Using Space for "clicking" whichever control has focus has been around
> for a while. I don't remember offhand -- it may depend on the setting
> in System Preferences that gover
Which version of macOS are you running?
Sent from my iPhone
> On Sep 8, 2018, at 5:53 PM, Richard Charles wrote:
>
> I have a simple NSAlert presented as an attached sheet with a single default
> OK button.
>
> When the spacebar is pressed the alert is dismissed.
>
> It this a new thing?
>
I don't know where or whether it's documented, but it's not new.
Using Space for "clicking" whichever control has focus has been around
for a while. I don't remember offhand -- it may depend on the setting
in System Preferences that governs whether all controls can get
keyboard focus.
--Andy
On
> On Aug 23, 2016, at 4:31 PM, dangerwillrobinsondan...@gmail.com wrote:
>
>
>
>> On Aug 24, 2016, at 2:56 AM, Andreas Falkenhahn
>> wrote:
>>
>> Is that your personal opinion or is this documented anywhere?
> There's not anything to the contrary I've seen.
Andreas is right. For you to cal
> On Aug 24, 2016, at 2:56 AM, Andreas Falkenhahn
> wrote:
>
> Is that your personal opinion or is this documented anywhere?
There's not anything to the contrary I've seen.
Look no further than LSUIElement.
There is an info plist key that says you have no UI, and guess what it works
even if
> On 24 Aug 2016, at 12:52 AM, Andreas Falkenhahn
> wrote:
>
> I really can't use NSApplicationMain() because AFAICS it also expects
> to load a NIB file from the app bundle which simply doesn't exist for
> my app because I'm not using Xcode at all and everything is set up
> programmatically.
On 23.08.2016 at 19:30 dangerwillrobinsondan...@gmail.com wrote:
> You don't have to have a nib unless your plist says you will.
Is that your personal opinion or is this documented anywhere?
Apple's documentation of NSApplicationMain() clearly states that
this function "loads the main nib file
It may load it any way.
You don't have to have a nib unless your plist says you will.
Sent from my iPhone
> On Aug 24, 2016, at 12:45 AM, Scott Ribe wrote:
>
>> On Aug 23, 2016, at 8:52 AM, Andreas Falkenhahn
>> wrote:
>>
>> I really can't use NSApplicationMain() because AFAICS it also expe
On 23.08.2016 at 17:45 Scott Ribe wrote:
> On Aug 23, 2016, at 8:52 AM, Andreas Falkenhahn
> wrote:
>> I really can't use NSApplicationMain() because AFAICS it also expects
>> to load a NIB file from the app bundle
> The nib to load at startup is specified in the plist, I bet if you
> leave th
On Aug 23, 2016, at 8:52 AM, Andreas Falkenhahn wrote:
>
> I really can't use NSApplicationMain() because AFAICS it also expects
> to load a NIB file from the app bundle
The nib to load at startup is specified in the plist, I bet if you leave that
entry out, it won't try...
--
Scott Ribe
scot
On 23.08.2016 at 01:17 Graham Cox wrote:
>> On 23 Aug 2016, at 1:46 AM, Andreas Falkenhahn
>> wrote:
>> It is unusual in the way that it's not calling NSApplicationMain() but tries
>> to imitate what NSApplicationMain() does. Here goes the code that is executed
>> to set up the NSApp:
> Ther
> On 23 Aug 2016, at 1:46 AM, Andreas Falkenhahn wrote:
>
> It is unusual in the way that it's not calling NSApplicationMain() but tries
> to imitate what NSApplicationMain() does. Here goes the code that is executed
> to set up the NSApp:
There’s your problem.
You’re not running a proper NSR
On 22.08.2016 at 17:55 Ken Thomases wrote:
>>> Is this in the same app from your other thread
>>> where you're trying to shoehorn Cocoa into a C-based program? Can
>>> you reproduce the problem in a new, standard Cocoa app project?
>> Yup, see above ;)
> This is ambiguous. Was the "yup" to my
On Aug 22, 2016, at 10:46 AM, Andreas Falkenhahn wrote:
>
> On 22.08.2016 at 17:30 Ken Thomases wrote:
>
>> On Aug 22, 2016, at 8:26 AM, Andreas Falkenhahn
>> wrote:
>
>>> I've created an NSAlert dialog …
>
>>> it shows up correctly but pressing a button doesn't do anything on 10.6. The
>>>
On 22.08.2016 at 17:30 Ken Thomases wrote:
> On Aug 22, 2016, at 8:26 AM, Andreas Falkenhahn
> wrote:
>> I've created an NSAlert dialog as described here:
>> https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Dialog/Tasks/UsingAlerts.html#//apple_ref/doc/uid/2871-129009-
On Aug 22, 2016, at 8:26 AM, Andreas Falkenhahn wrote:
>
> I've created an NSAlert dialog as described here:
> https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Dialog/Tasks/UsingAlerts.html#//apple_ref/doc/uid/2871-129009-BCIFAAEJ
>
>
> When I run it using
>
> [ale
> On 2016 Aug 22, at 23:04, Andreas Falkenhahn wrote:
>
> On 22.08.2016 at 15:49 dangerwillrobinsondan...@gmail.com wrote:
>
>
>>> On Aug 22, 2016, at 10:26 PM, Andreas Falkenhahn
>>> wrote:
>
>>> Does anybody have an idea
>>> what could cause this behaviour on 10.6 and how I can fix this
On Aug 22, 2016, at 09:04 AM, Andreas Falkenhahn wrote:
You really think I didn't Google before asking? I certainly did, but
so far I haven't found anything that could help me here. If you have
anything more than just a Google search for "NSAlert 10.6", please
elaborate... (or send a link)
Exac
On 22.08.2016 at 15:49 dangerwillrobinsondan...@gmail.com wrote:
>> On Aug 22, 2016, at 10:26 PM, Andreas Falkenhahn
>> wrote:
>> Does anybody have an idea
>> what could cause this behaviour on 10.6 and how I can fix this?
> http://bfy.tw/7Kcc
> there is a great resource here.
You really th
> On Aug 22, 2016, at 10:26 PM, Andreas Falkenhahn
> wrote:
>
> Does anybody have an idea
> what could cause this behaviour on 10.6 and how I can fix this?
http://bfy.tw/7Kcc
there is a great resource here.
___
Cocoa-dev mailing list (Cocoa-dev@lis
> On May 23, 2016, at 2:41 PM, Fritz Anderson wrote:
>
> Hence the rule that you don’t do _anything_ lengthy on the main (GUI-runloop)
> thread. You can see how using a separate thread would solve your problem.
> Welcome to 2003.
Less dogmatically, you can use -performSelector:withObject:aft
On 23 May 2016, at 4:14 PM, Tom Doan wrote:
>
> I have an menu operation which, before it fully executes, pops up
> an NSAlert asking a Yes/No question ("Selection Only(Y/N)?") then,
> depending upon the answer will either apply to the whole list or just
> the selection. However, no matter wha
On May 19, 2014, at 1:30 PM, Seth Willits wrote:
> Any ideas on how to get a Cancel button which is both the default button and
> responds to escape? Both require setting the button's key equivalent and
> there can only be one.
Desired Behavior:
Delete - First button, but *not* defa
On May 22, 2014, at 12:24 PM, Jens Alfke wrote:
>
> On May 22, 2014, at 8:54 AM, edward taffel wrote:
>
>> i find no mention of thread safety in the NSOpenPanel doc, but the doc
>> mentions ‘Open panels are drawn in a separate process by the powerbox’:
>> perhaps this is the reason.
>
> Th
On May 22, 2014, at 8:54 AM, edward taffel wrote:
> i find no mention of thread safety in the NSOpenPanel doc, but the doc
> mentions ‘Open panels are drawn in a separate process by the powerbox’:
> perhaps this is the reason.
That’s done because the Open panel itself can’t be bound by the li
On 22 May 2014, at 10:54 AM, edward taffel wrote:
> i find no mention of thread safety in the NSOpenPanel doc, but the doc
> mentions ‘Open panels are drawn in a separate process by the powerbox’:
> perhaps this is the reason.
This is one of those rules so universal in Apple APIs that it is ne
On May 22, 2014, at 11:41 AM, Jens Alfke wrote:
>
> On May 22, 2014, at 8:29 AM, edward taffel wrote:
>
>> this i have remedied. however, given the scenario where a url has vanished,
>> i first show an NSAlert & then an NSOpenPanel to offer relink. NSOpenPanel
>> causes no such background t
On May 22, 2014, at 8:29 AM, edward taffel wrote:
> this i have remedied. however, given the scenario where a url has vanished, i
> first show an NSAlert & then an NSOpenPanel to offer relink. NSOpenPanel
> causes no such background thread issue: do the two have variant thread
> safety? or is
On May 19, 2014, at 4:30 PM, Seth Willits wrote:
> Any ideas on how to get a Cancel button which is both the default button and
> responds to escape? Both require setting the button's key equivalent and
> there can only be one.
This seems to work:
NSAlert *alert = [[NSAlert alloc] ini
On 2014 May 19, at 13:30, Seth Willits wrote:
> Any ideas on how to get a Cancel button which is both the default button and
> responds to escape? Both require setting the button's key equivalent and
> there can only be one.
Maybe override -keyDown: somewhere.
__
On 25 Jan 2010, at 04:27, Poonam Virupaxi Shigihalli wrote:
>
> hi all,
>
> When alert messages are displayed using runModal, it blocks the thread until
> the user clicks on the button. Is there anyway to avoid blocking of the
> thread when alert is displayed?
>
Try displaying your alerts as
On 25/01/2010, at 3:27 PM, Poonam Virupaxi Shigihalli wrote:
> When alert messages are displayed using runModal, it blocks the thread until
> the user clicks on the button. Is there anyway to avoid blocking of the
> thread when alert is displayed?
NSAlert does not block the thread, it runs mo
Here's a recipe I discovered recently: Consult the Apple Human Interface
Guidelines PDF [1], which sometimes has an "Implementation" section that tells
you what classes, APIs, or constants to use.
In this case, browsing for this section:
Part III: Aqua
> Windows
> So the problem I was having with my googling was that I was trying alert,
> popup and dialog - not sheet ;o)
Yep. Just a heads up for future reference (not related to your current
question), as you continue on your newbie path, you may find that certain
methods dealing with modal windows that yo
So the problem I was having with my googling was that I was trying alert, popup
and dialog - not sheet ;o)
On 19 Dec 2009, at 18:41, Ken Thomases wrote:
> On Dec 19, 2009, at 12:37 AM, Michael Davey wrote:
>
>> Sorry for the really noob posting, but I am currently using the NSAlert
>> class to
Thanks for the pointer!
On 19 Dec 2009, at 18:37, David A. Lyons wrote:
> Here's a recipe I discovered recently: Consult the Apple Human Interface
> Guidelines PDF [1], which sometimes has an "Implementation" section that
> tells you what classes, APIs, or constants to use.
>
> In this case,
On Dec 19, 2009, at 12:37 AM, Michael Davey wrote:
Sorry for the really noob posting, but I am currently using the
NSAlert class to display alerts in my application, but what I would
rather do is display one of the alert boxes that slide out of the
title bar, as with the installer, firefox
On Oct 7, 2009, at 3:12 PM, Kyle Sluder wrote:
FWIW, the alerts are run with beginModalSessionForWindow and
runModalSession.
So I don't understand why you're so intent on using NSAlert if you're
not using its -beginSheetModalForWindow:… convenience method?
Oh, I use it. But because of the
On Wed, Oct 7, 2009 at 12:01 PM, David Reitter wrote:
> I meant NSObject's -copy. Confused it with Java's clone method.
NSWindow doesn't conform to NSCopying anyway, so -copy will just raise
an exception because there is no suitable implementation of
-copyWithZone:.
> FWIW, the alerts are run w
On Oct 7, 2009, at 2:48 PM, Kyle Sluder wrote:
On Wed, Oct 7, 2009 at 11:19 AM, David Reitter > wrote:
window = (MyNSAlert*) [window clone];
What is this -clone method?
I meant NSObject's -copy. Confused it with Java's clone method.
That way I could get NSAlert to do all the layout and pr
On Wed, Oct 7, 2009 at 11:19 AM, David Reitter wrote:
> window = (MyNSAlert*) [window clone];
What is this -clone method?
> That way I could get NSAlert to do all the layout and prepare the window,
> but then take over and roll my own?
No, because even granting the existence of this -clone met
On Oct 7, 2009, at 2:09 PM, Jens Alfke wrote:
I think the best way is to create your own alert panel in a nib and
run it modally. That way you have total control — you can set your
own window delegate to handle key events, for example.
I had a similar solution beforehand but gave up on it b
On Oct 7, 2009, at 10:58 AM, David Reitter wrote:
What is the easiest way to get my customized NSAlert to allow
multiple key equivalents for its buttons?
I think the best way is to create your own alert panel in a nib and
run it modally. That way you have total control — you can set your o
On Wed, Oct 7, 2009 at 10:58 AM, David Reitter wrote:
> What is the easiest way to get my customized NSAlert to allow multiple key
> equivalents for its buttons?
You're probably going to need to stop using NSAlert and start using
your own window as a sheet. Then you should be able to override
-s
It worked after adding timer in NSModalPanelRunLoopMode.Thanks
On Tue, Dec 9, 2008 at 3:46 PM, Sherm Pendley <[EMAIL PROTECTED]>wrote:
> The +scheduledTimer* methods schedule the timer using the default runloop
> mode. Try creating a timer without scheduling it, then adding it yourself to
> the c
The +scheduledTimer* methods schedule the timer using the default
runloop mode. Try creating a timer without scheduling it, then adding
it yourself to the current runloop with NSRunLoop's -addTimer:forMode:
instead, using the NSModalPanelRunLoopMode mode:
myTimer = [NSTimer timerWithTim
I am using NSAlert. When runModal is called on the NSAlert's object, timer
is not fired till the time i close the alert panel..
On Tue, Dec 9, 2008 at 3:20 PM, rajesh <[EMAIL PROTECTED]> wrote:
> I did something like this , long time back
>
> hope, this is close enough to your requirement or may
I did something like this , long time back
hope, this is close enough to your requirement or may be its a wrong
practice ( user discretion required :) )
-()runAlert
{
..// show modal window
NSTimer *myTimer = [[NSTimer scheduledTimerWithTimeInterval:someTime
target:self selector:@selector(
Wow, I am completely out of it today. ;)
Thanks for your help,
Pierce F.
On 10/18/08 12:46 PM, "Jason Coco" <[EMAIL PROTECTED]> wrote:
>
> On Oct 18, 2008, at 15:43 , Pierce Freeman wrote:
>
>> Thanks for your help. However, Xcode gives me this warning when I
>> build:
>>
>> NSAlert' may
On Oct 18, 2008, at 15:43 , Pierce Freeman wrote:
Thanks for your help. However, Xcode gives me this warning when I
build:
NSAlert' may not respond to
'+
alertWithMessageText:defaultButton:aleternateButton:otherButton:informativ
eTextWithFormat:'
alternateButton is spelled wrong ;)
J
Thanks for your help. However, Xcode gives me this warning when I build:
NSAlert' may not respond to
'+alertWithMessageText:defaultButton:aleternateButton:otherButton:informativ
eTextWithFormat:'
Sincerely,
Pierce F.
On 10/18/08 12:26 PM, "Jason Coco" <[EMAIL PROTECTED]> wrote:
>
> On Oc
On Oct 18, 2008, at 14:35 , Pierce Freeman wrote:
Hi everyone.
I have been attempting to create a NSAlert popup and get the result
(so it
can run an if statement) for the last few hours, but I still can't
get it to
work. My current code is below, if anyone wants to have a look
see... If
Problem solved, I had to fill in: [NSApp mainWindow]
I cannot find out how to refer to the window of my single window
program in
the method: beginSheetModalForWindow
Some help would be appreciated!
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple
> I cannot find out how to refer to the window of my single window program in
> the method: beginSheetModalForWindow
> Some help would be appreciated!
Where (in what object) is this code located? That'd probably be a
good place to add an IBOutlet to your window (and connect it in
Interface Bui
57 matches
Mail list logo