• 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: Name to PSN
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Name to PSN


  • Subject: Re: Name to PSN
  • From: Pierce Freeman <email@hidden>
  • Date: Sat, 28 Feb 2009 13:32:22 -0800
  • Thread-topic: Name to PSN

I thought that based on the info, you couldn't do it using Apple Events...
Apparently I misinterpreted.  I'll try this in a little bit and I'll post
back my results.


On 2/28/09 1:22 PM, "Scott Ribe" <email@hidden> wrote:

>> Then would there be some way to either "trick" the system into quitting it
>> in Cocoa, or simply using another way other then Apple Events?
>
> What's wrong with Apple Events?
>
> NSDictionary *err = nil;
> NSAppleEventDescriptor *desc =
>     [[[[NSAppleScript alloc] initWithSource: @"tell application \"System
> Events\"\r..."] autorelease] executeAndReturnError: &err];
>
> OK, yeah, I wouldn't (don't) actually try to jam it all on one line like
> that, but it's just to give you the idea...


_______________________________________________

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

References: 
 >Re: Name to PSN (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: Name to PSN
  • Next by Date: Re: "Pausing" other programs
  • Previous by thread: Re: Name to PSN
  • Next by thread: Re: Name to PSN
  • Index(es):
    • Date
    • Thread