• 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: Sample Cocoa code to show how to launch a doc by sliding its icon into appl icon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sample Cocoa code to show how to launch a doc by sliding its icon into appl icon


  • Subject: Re: Sample Cocoa code to show how to launch a doc by sliding its icon into appl icon
  • From: "Frederick C. Lee" <email@hidden>
  • Date: Thu, 7 Jul 2005 13:58:22 -0700

I've solved my original error:

@implementation ParseWindowController (_private)

- (BOOL)application:NSApp openFile:(NSString *)filename {
    NSLog(@"{openFile}  Hello Ric!");
    return TRUE;
}

...via using 'NSApp' as my application.    Make Sense.

So I don't have a runtime error.

-----

But I still can't launch the application via sliding the doc into the application icon.
It's not a super critical thing for me, but it would be nice to find a solution.


Thanks for your effort; it points me to possible solution if I dig deeper into it.

Regards,
Ric.

On Jul 7, 2005, at 6:04 PM, Shoaib wrote:

You need to implement the following NSApplication delegate method in your Controller class:

- (BOOL)application:(NSApplication *)theApplication openFile: (NSString *)filename
Regards,
Shoaib Hannani
xhead software, llc
http://www.xheadsoftware.com


Greetings:
Simple quest: Where can I find an example showing how to launch a doc/info by sliding it into a application icon for processing. Regards, Ric. _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40xheadsoftware.co m This email sent to email@hidden





_______________________________________________ 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
  • Follow-Ups:
    • Re: Sample Cocoa code to show how to launch a doc by sliding its icon into appl icon
      • From: Fritz Anderson <email@hidden>
References: 
 >Sample Cocoa code to show how to launch a doc by sliding its icon into appl icon (From: "Frederick C. Lee" <email@hidden>)
 >Re: Sample Cocoa code to show how to launch a doc by sliding its icon into appl icon (From: "Shoaib" <email@hidden>)

  • Prev by Date: Re: Visiblity
  • Next by Date: Re: Visiblity
  • Previous by thread: Re: Sample Cocoa code to show how to launch a doc by sliding its icon into appl icon
  • Next by thread: Re: Sample Cocoa code to show how to launch a doc by sliding its icon into appl icon
  • Index(es):
    • Date
    • Thread