• 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:22:03 -0700

I put the routine into the controller per your suggestion:

@implementation ParseWindowController (_private)
- (BOOL)application:(NSApplication *)theApplication openFile: (NSString *)filename {
NSLog(@"{openFile} Hello Ric!");
return TRUE;
}
...
...
@end



But I got the following runtime error:

[Session started at 2005-07-07 13:14:06 -0700.]
2005-07-07 13:14:07.997 Parsing Data[2463] CFLog (0): CFMessagePort: bootstrap_register(): failed 1103 (0x44f), port = 0x3303, name = 'com.apple.myCocoaApplication.ServiceProvider'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2005-07-07 13:14:08.029 Parsing Data[2463] CFLog (99): CFMessagePortCreateLocal(): failed to name Mach port (com.apple.myCocoaApplication.ServiceProvider)
2005-07-07 13:14:08.627 Parsing Data[2463] {applicationDidFinishLaunching} <--- Okay: this delegate worked.


Parsing Data has exited with status 0.


I looked up the error code in bootstrap_defs.h and got the following: #define BOOTSTRAP_SERVICE_ACTIVE 1103


----

Any ideas? , Anyone?

Thanks for the reply!

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: Finlay Dobbie <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: Smart Group Question
  • Next by Date: Re: Smart Group Question
  • 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