• 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: subclass NSAlert or what?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: subclass NSAlert or what?


  • Subject: Re: subclass NSAlert or what?
  • From: Johnny Deadman <email@hidden>
  • Date: Tue, 12 Apr 2005 08:08:15 -0400

Thanks, Günther, I appreciate that. It really helps.

Yes, I already do what you suggest, selecting among various pasteboard types. This dialog crops up when the user attempts to paste styled text from another document created with the same app. I use my own pasteboard type, which typically contains a lot of information not in the RTF pastboard type (which paragraph is dialog, which paragraph is action etc). If there are styles in the 'from' document that don't exist in the 'to' document, the app has to make a decision about what to do. It is not acceptable to use the RTF pasteboard type instead because it will throw away far too much information (the user might be pasting an entire screenplay which already has all the paragraphs labelled properly).

One alternative to this would be to create a duplicate of the missing style in the target document. In some ways this might be preferable. Another alternative would be to replace the missing style with a default style, but I do not like this because the user would then have to go through the document and fix the missing style manually.

The annoying thing is that this is quite a rare case, but not so vanishingly rare that I feel happy ignoring it.

Anyway, thanks again.


On 12-Apr-05, at 3:06 AM, Günther Blaschek wrote:

However, you might also want to reconsider the user interface altogether. The pasteboard will contain multiple flavors. When the user selects "Paste", you could simply use the best variant available. To give the user more control about what to paste, you could add a separate "Paste As" menu with an attached submenu that lists the currently available formats.
From a user's perspective, I would prefer this technique, as it avoids modal states altogether.

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Re: subclass NSAlert or what? (From: Günther Blaschek <email@hidden>)

  • Prev by Date: Re: Launched window not activating
  • Next by Date: NSTextView and RTF bytes bug in "deployment" build style?
  • Previous by thread: Re: subclass NSAlert or what?
  • Next by thread: NSPopupButton fun & games (newbie)
  • Index(es):
    • Date
    • Thread