• 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: Trouble with openFileWithoutUI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with openFileWithoutUI


  • Subject: Re: Trouble with openFileWithoutUI
  • From: email@hidden
  • Date: Mon, 17 Nov 2008 19:52:55 +0000

Documentation for application:openFileWithoutUI:
"Sent directly by sender to the delegate to request that the file filename be opened as a linked file. The method should open the file without bringing up its application’s user interface—that is, work with the file is under programmatic control of sender, rather than under keyboard control of the user."

It seemed like the think to use.

Ok, How do I open a file pragramatically?

 -------------- Original message ----------------------
From: Fritz Anderson <email@hidden>
> On 17 Nov 2008, at 10:44 AM, email@hidden wrote:
>
> > I am trying to open a defined document type programmatically.

> Read up more on Cocoa's delegate design pattern.
> application:openFileWithoutUI: and application:openFile: are methods
> an application _delegate_ may implement. The documentation shows they
> are delegate methods. They are not methods of NSApplication, and
> trying to use one on an NSApplication will give you the error you saw,
> saying that the method isn't there.
>
> You would not (maybe there are exceptions) call delegate methods
> yourself. It isn't illegal, but it suggests a problem in your design.
> Cocoa's purpose in having delegate methods is for them to be called
> from the object that owns the delegate.
>
> 	— F
>
> --
> Fritz Anderson -- Xcode 3 Unleashed: Now in its second printing --
> <http://x3u.manoverboard.org/
>  >
>

_______________________________________________

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

  • Follow-Ups:
    • Re: Trouble with openFileWithoutUI
      • From: "Kyle Sluder" <email@hidden>
  • Prev by Date: Re: Interface Builder & Wiring Objects
  • Next by Date: Re: Opening Ports in Leopard
  • Previous by thread: Re: Trouble with openFileWithoutUI
  • Next by thread: Re: Trouble with openFileWithoutUI
  • Index(es):
    • Date
    • Thread