Re: NSSavePanel, background-only app, "Replace?" alert ordering
Re: NSSavePanel, background-only app, "Replace?" alert ordering
- Subject: Re: NSSavePanel, background-only app, "Replace?" alert ordering
- From: m <email@hidden>
- Date: Sat, 7 Feb 2004 11:30:54 -0800
On Feb 7, 2004, at 7:52 AM, Dave Hersey wrote:
I'm having a problem with NSSavePanel from a background-only app with
an
NSStatusItem. The app in question may encounter data errors during data
processing, and I want to allow the user to save an error report
rather than
cough up a dialog with a bunch of gory details that they need to
scribble
down correctly.
This mostly works, but in the case where the destination file already
exists, the NSSavePanel "Replace file?" alert comes up *behind* the
Save
panel, making it hard or impossible to notice.
Insert
[[NSApplication sharedApplication] activateIgnoringOtherApps:YES];
before you call
[savePanel makeKeyAndOrderFront:self];
_murat
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.