• 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
SBApplication taking forever to instantiate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SBApplication taking forever to instantiate


  • Subject: SBApplication taking forever to instantiate
  • From: "Adam Knight" <email@hidden>
  • Date: Thu, 3 Jan 2008 12:37:57 -0800 (PST)
  • Bounce-to: "Adam Knight" <email@hidden>

I have the following code:

NSLog(@"Connecting to iPhoto app object");
iPhotoApplication *iPhoto = [[SBApplication alloc]
initWithBundleIdentifier:@"com.apple.iPhoto"];
[iPhoto autorelease];
NSLog(@"Connected to iPhoto app object");

This works fine if I use the identifier "com.apple.Finder". However, if
I try to use iPhoto then it takes 15-30 seconds to instantiate, even on
a fresh install/empty library for iPhoto.  I've tried with the program
running and not as well, and the object still won't return in any
acceptable amount of time. (If iPhoto is stopped, trying to instantiate
this object will start it, and then still take forever to finish.)

2008-01-03 14:30:14.818 MyApp[8284:10b] Connecting to iPhoto app object
2008-01-03 14:30:39.553 MyApp[8284:10b] Connected to iPhoto app object

Any ideas on why it's going so slowly, or a better place to ask if this
isn't it?  (Scripting Bridge is a strange one, part Cocoa and part AS,
so I have no idea where to ask.)

-- Adam
_______________________________________________

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: SBApplication taking forever to instantiate
      • From: John Stiles <email@hidden>
  • Prev by Date: Re: Binding table column to complex NSDictionary
  • Next by Date: Re: Core Data Migration Exception
  • Previous by thread: View controllers (was Re: Garbage collection, leaks and drains)
  • Next by thread: Re: SBApplication taking forever to instantiate
  • Index(es):
    • Date
    • Thread