Re: iOS when is my app launched

2010-12-08 Thread Jason Bobier
Hey Dave, I'm talking about the Carbon equivalent of processLaunchDate in the ProcessInfoExtendedRec. This is the actual date time that the process launched. I want to use it to give my game's splash screen a consistent amount of time on screen. Here's how: I set the Default.png to the

Re: iOS when is my app launched

2010-12-08 Thread Jason Bobier
Hi Glenn, This is for a game, which is an exception to this rule. Jason On Dec 8, 2010, at 9:27 AM, glenn andreas wrote: On Dec 8, 2010, at 7:38 AM, Jason Bobier wrote: Hey Dave, I'm talking about the Carbon equivalent of processLaunchDate in the ProcessInfoExtendedRec

iOS when is my app launched

2010-12-07 Thread Jason Bobier
How do I find the date and time when my application launched? I've done this before on OS X, but it was a while ago and I've forgotten how. :) Thanks so much! Jason ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Using NSKeyedArchiver to save and restore state on iPhone apps

2010-02-10 Thread Jason Bobier
As many of you know, saving and restoring complex navigation hierarchies on the iPhone can be a real chore. So, I had this brilliant idea of setting up my app delegate like this: applicationDidFinishLaunching if userdefaults contains an archived navcontroller unarchive

Re: Using NSKeyedArchiver to save and restore state on iPhone apps

2010-02-10 Thread Jason Bobier
apps, I'm just trying to be clever and to save myself a bunch of complex coding (that easily gets out of sync with how your hierarchies can be stacked) this time... :) Jason On Feb 10, 2010, at 3:12 PM, Jens Alfke wrote: On Feb 10, 2010, at 10:40 AM, Jason Bobier wrote: In theory

Re: Using NSKeyedArchiver to save and restore state on iPhone apps

2010-02-10 Thread Jason Bobier
PM, Jason Bobier ja...@prismatix.com wrote: All of these are NSCoding compliant, which means that if I archive it, I should be able to unarchive it and get the exact state back (subject to conditional archiving, etc...) as long as I archive a complete object graph. Not true. You have no idea

Re: Using NSKeyedArchiver to save and restore state on iPhone apps

2010-02-10 Thread Jason Bobier
means that it should be archivable. It appears that some of the NSCoding compliant objects aren't completely restorable tho. :-/ Jason On Feb 10, 2010, at 4:53 PM, Ricky Sharp wrote: On Feb 10, 2010, at 12:40 PM, Jason Bobier wrote: You don't want to take this approach at all

RegisterEventHotKey still the best way for global hotkeys

2009-02-21 Thread Jason Bobier
Hey there, before I use RegisterEventHotKey, I just wanted to make sure that it was still the only way to add a global hotkey to a machine? All that I really want to do is to cause my application to open when a hotkey is pressed if there happens to be a better way to do that. Thanks,

unable to break out of runloop because timers are fired and then the loop waits

2008-09-24 Thread Jason Bobier
Hey folks, I have a runloop on a thread that looks like this: while (! _cancelled) { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; [runloop runMode:NSDefaultRunLoopMode beforeDate:[NSDate distantFuture]]; [pool

Re: unable to break out of runloop because timers are fired and then the loop waits

2008-09-24 Thread Jason Bobier
Thanks Nick. I'm trying to avoid polling tho (since that is the whole point of runloops and mach ports). Jason On Sep 24, 2008, at 3:38 PM, Nick Zitzmann wrote: On Sep 24, 2008, at 1:15 PM, Jason Bobier wrote: Hey folks, I have a runloop on a thread that looks like this: while

Re: best way to determine if portion of window is visible?

2008-08-19 Thread Jason Bobier
, causes it to appear as if nothing is happening if a large number of non-exposed windows are faded before the exposed ones are. Jason On Aug 15, 2008, at 5:09 PM, Andy Lee wrote: On Aug 15, 2008, at 2:18 PM, Jason Bobier wrote: I'd like to fade my window out if any portion of it is visible

Re: best way to determine if portion of window is visible?

2008-08-19 Thread Jason Bobier
of the transparency of the covering windows, it is even more difficult to know whether the window is exposed or not. :-) Jason On Aug 15, 2008, at 6:07 PM, Michael Ash wrote: On Fri, Aug 15, 2008 at 2:18 PM, Jason Bobier [EMAIL PROTECTED] wrote: Hey folks, I'd like to fade my window out if any portion

Re: controlling system muting ?

2008-07-08 Thread Jason Bobier
On Jul 8, 2008, at 12:24 AM, Phil wrote: On Tue, Jul 8, 2008 at 3:25 PM, Jason Bobier [EMAIL PROTECTED] wrote: Has anyone figured out how to control a machine's volume level (specifically muting) from code? I know that you can do it from Applescript, but running an applescript from code

Re: controlling system muting ?

2008-07-08 Thread Jason Bobier
lol.. I knew I should have specified that this is a product requirement from users to avoid all of the worrying people are doing about my app. :-) Jason On Jul 8, 2008, at 7:52 AM, Andreas Mayer wrote: Am 08.07.2008 um 12:46 Uhr schrieb [EMAIL PROTECTED]: 2. Bring up an alert and after

Re: controlling system muting ?

2008-07-08 Thread Jason Bobier
I also need to determine the user's current mute and volume settings and restore them after my alert plays, which is the other reason that I was looking for something other than AppleScript. Jason On Jul 8, 2008, at 4:02 PM, I. Savant wrote: But that isn't what the OP asked. The OP asks

NSSound won't play wave files???

2008-07-07 Thread Jason Bobier
Has anyone else had issues playing wave files with NSSound? Not only does it refuse to play the file (even tho I can open it with the Quicktime Player and play it), but it fails to error. It simply doesn't make a sound. AIFF files seem to play just fine. Here is the code in a generic

Re: NSSound won't play wave files???

2008-07-07 Thread Jason Bobier
, 2008, at 2:53 AM, Jason Bobier wrote: Has anyone else had issues playing wave files with NSSound? Not only does it refuse to play the file (even tho I can open it with the Quicktime Player and play it), but it fails to error. It simply doesn't make a sound. AIFF files seem to play just fine

Re: NSSound won't play wave files???

2008-07-07 Thread Jason Bobier
Hey Charles, I just did and that worked fine, so at least I have a work around. :-) Jason On Jul 7, 2008, at 3:01 AM, Charles Srstka wrote: On Jul 7, 2008, at 1:53 AM, Jason Bobier wrote: Has anyone else had issues playing wave files with NSSound? Not only does it refuse to play the file

controlling system muting ?

2008-07-07 Thread Jason Bobier
Hey folks, Has anyone figured out how to control a machine's volume level (specifically muting) from code? I know that you can do it from Applescript, but running an applescript from code seems to be a rather clunky approach. This is for emergency notification, so I have to be able to

NSTask(syslog)-NSPipe-NSFileHandle-readInBackgroundAndNotify buffers

2008-06-11 Thread Jason Bobier
Hey folks, I know that this has been discussed here before, but after spending hours reading cocoa-dev posts, I have yet to find the solution. The issue that I'm having is that I'm using NSTask to create a syslog process with the -w option to continually parse specific syslog entries. The

Re: NSTask(syslog)-NSPipe-NSFileHandle-readInBackgroundAndNotify buffers

2008-06-11 Thread Jason Bobier
). Any other thoughts? Jason PS, I read the Domain of the Bored ASL stuff before I started and it saved me countless headaches. :-) On Jun 11, 2008, at 5:05 PM, Ken Thomases wrote: On Jun 11, 2008, at 3:10 PM, Jason Bobier wrote: The issue that I'm having is that I'm using NSTask to create

Re: Unvending a distributed object

2008-06-11 Thread Jason Bobier
Yes, that is how you do it. Jason On Jun 11, 2008, at 7:09 PM, Ken Thomases wrote: On Jun 11, 2008, at 6:05 PM, Mike Manzano wrote: Does anyone know how to unvend an object? I found this thread on the list: http://lists.apple.com/archives/Cocoa-dev/2002/Mar/msg00710.html but it didn't