• 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: NSSavePanel, background-only app, "Replace?" alert ordering
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NSSavePanel, background-only app, "Replace?" alert ordering
      • From: Dave Hersey <email@hidden>
References: 
 >NSSavePanel, background-only app, "Replace?" alert ordering (From: Dave Hersey <email@hidden>)

  • Prev by Date: TextView font specification?
  • Next by Date: NSSlider and live resize
  • Previous by thread: NSSavePanel, background-only app, "Replace?" alert ordering
  • Next by thread: Re: NSSavePanel, background-only app, "Replace?" alert ordering
  • Index(es):
    • Date
    • Thread