Re: Persistent User Defaults

2018-04-30 Thread Nathan Day
Thats not completely correct modifying the preferences file directly or deleting it can take a while for the user defaults process to pick up the change, but you can force the user defaults process to pick up the changes with killall cfprefsd it can be a little bit complicated sometimes and the

Re: NSTimer not firing when computer is inactive for a while.

2017-11-14 Thread Nathan Day
I should make it clear, this is a Mac OS X application. Nathan Day On 14 Nov, 2017, at 01:43 PM, Nathan Day wrote: I have a background process that uses an NSTimer that is set to fire every minute, but when the computer is inactive for a while it will stop firing, its not until someone

NSTimer not firing when computer is inactive for a while.

2017-11-14 Thread Nathan Day
o display the downloaded resources, a bit like iTunes and iTunes Helper. Nathan Day ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins

Re: iOS4.3 simulator with Xcode 4.4

2012-07-26 Thread Nathan Day
Sorry this really belongs on the Xcode mailing list Nathan Day On 27/07/2012, at 11:53 AM, Nathan Day wrote: > Does anybody know how to get the iOS4.3 simulator to work with Xcode 4.4, we > need to support iOS 4 up. I did a google search and found a way to do it with > earlier Xcode

iOS4.3 simulator with Xcode 4.4

2012-07-26 Thread Nathan Day
Does anybody know how to get the iOS4.3 simulator to work with Xcode 4.4, we need to support iOS 4 up. I did a google search and found a way to do it with earlier Xcode 4's, but when I try it with Xcode 4.4 the simulator complains it can not find the SDK. Natha

Re: Write Finder plugin

2012-07-12 Thread Nathan Day
You can do this with Services if you are willing to have it in the services menu of the contextual menu, the user has to enable your service by going to System Preferences > Keyboard > Keyboard Shortcuts, you may be able to AppleScript that. If you are just writing scripts for you own use that y

Re: NSInteger vs int vs int32_t

2012-07-04 Thread Nathan Day
ds it must do some bit shift. On 05/07/2012, at 3:33 PM, Scott Ribe wrote: > On Jul 4, 2012, at 11:28 PM, Nathan Day wrote: > >> You are saying that the CPU read two 32bit int from the cache at the same >> time, and then does some bit manipulation to get the high or low 32bi

Re: NSInteger vs int vs int32_t

2012-07-04 Thread Nathan Day
You are saying that the CPU read two 32bit int from the cache at the same time, and then does some bit manipulation to get the high or low 32bit word into a 64bit register. On 03/07/2012, at 11:00 AM, Scott Ribe wrote: > On Jul 2, 2012, at 5:42 PM, David Duncan wrote: > >> I suspect you are b

Re: Crash when calling va_arg()

2012-07-04 Thread Nathan Day
For function you can write a macro version of your function which calls, you function and appends a NULL to the VA_ARG macro. I don't normally do this but I have done something similar where I wanted macros to add meta data to a class, that expanded out into compete class method implementations.

Re: Caching Streaming video

2011-06-27 Thread Nathan Day
r play]; to a notification observer for the video did finish loading notification. On 26/06/2011, at 8:05 PM, Nathan Day wrote: > I am trying to playback video in my iOS app while I am loading and caching it > at the same time. I fetch the video using a NSURLConnection and then store it

Caching Streaming video

2011-06-26 Thread Nathan Day
file before I start playback. I can also get the video to play completely if I stop the failed attempt with a [video stop] message and then start playing it again, pausing the video only doesn't work. Has anybody got this working, is it possible. Nathan Day Software Engineer m

Re: NSTimer not working in a multithreaded application

2010-09-02 Thread Nathan Day
NSTimers rely on there being an NSRunLoop for the current thread, so if you are creating a timer in a thread without a run loop it will not work, because the is no run loop to add the timer to. From the sounds of it you also want the timer to be executed in the main thread, in which case you wil

Non full screen video on iPhone

2010-08-29 Thread Nathan Day
Is it possible to have none full screen video on the iPhone, I have try to just get a demo app going at the moment, I tried using a UIWebView with a video tag that that doesn't start playing until it becomes full screen. Any sample projects would be appreciated. Nathan Day Software Eng

Re: NSCoding between iOS and Mac OS X

2010-08-26 Thread Nathan Day
ed values like color mode (ARGB, HSL), > color components, etc. Then, rebuild up objects as needed. > > For text data, I would use UTF-8 with the original text being normalized. > > Sent from my iPhone > > On Aug 25, 2010, at 8:43 AM, Nathan Day wrote: > >> Does anyb

NSCoding between iOS and Mac OS X

2010-08-25 Thread Nathan Day
Does anybody know whether NSCoding can be used to transfer data between iOS and Mac OS X. Is this documented as guaranteed to work. I have tried to do a google search but I got nothing, probably searching for the wrong thing. Nathan Day http://homepage.mac.com/nathan_day

NSXMLElement and namespaces

2010-04-03 Thread Nathan Day
I and then use a name which uses the namespace prefix as part of the name, for exmaple [NSXMLNode elementWithName:@"xsl:value-of" URI:@"http://www.w3.org/1999/XSL/Transform";]; If you have to add the prefix to the name then what is the point of the URI argument. Nathan Da

Re: MyDocument.xib v MainMenu.xib

2009-12-29 Thread Nathan Day
Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/nathan_day%40mac.com > > This email sent to nathan_...@mac.com Nathan Day home page: http://homepage.mac.com/nathan_day/ ___ Cocoa

Re: passing a method name?

2009-12-20 Thread Nathan Day
equests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/nathan_day%40mac.com > > This email sent to nathan_...@mac.com Nathan Da

Re: Hiding tab view items

2009-10-21 Thread Nathan Day
pane is divided into tab view items. Only some of the tab view items are relevant to each type of node, so I'd like to hide the tab view items that are not relevant. How can I do this? Nathan Day http://homepage.mac.com/nathan_day/ ___ Coco

Beach balling on mach_msg_trap

2009-10-21 Thread Nathan Day
) #11 0x000134ba in main (argc=1, argv=0x7fff5fbff3c8) at XX Nathan Day Software Engineer mobile: +61 (0)4 3863 2407 home page: http://homepage.mac.com/nathan_day/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Re: How can we draw a horizontal line with embossing effect?

2009-09-10 Thread Nathan Day
You could also try one of the draw bezel functions NSDrawDarkBezel NSDrawGrayBezel NSDrawLightBezel NSDrawWhiteBezel with a height of 2, and a y value with a .5 decimal On 11/09/2009, at 12:12 AM, Steven Degutis wrote: Arun, It's just two lines drawn on top of one another, with the top one

Re: document-based application

2009-09-07 Thread Nathan Day
That is the way I do it, I don't see why it wouldn't work 100% of the time, it would be nice if Apple had a way to insert a template chooser, but I would describe the way you have done it as 'an ugly hack'. On 07/09/2009, at 3:24 PM, Oftenwrong Soong wrote: Hi All, In my doc-based app, I

Re: Creating table rows from XML

2009-04-20 Thread Nathan Day
What happens when you run it in the debugger, you say this is your first iPhone application if you are new to using a debugger then you really need to learn how to use that, it will make finding bugs like this a lot easier, for example you can break just before you add an object to you arra

Re: Multithreading and Mach ports

2008-12-11 Thread Nathan Day
NSPort represents both ends of the communication channel you only create one NSPort. On 11/12/2008, at 4:58 AM, John Love wrote: Reference: http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/chapter_6_section_5.html#/ /apple_ref/doc/uid/1057i-CH16

Re: Countdown With NSTimer - Hours, Minutes, Seconds Remaining?

2008-12-10 Thread Nathan Day
You need something like NSLog(@"%.2d Hours, %.2d Minutes and %2d Seconds Remaining", hoursSelected-seconds/3600, (hoursSelected*60-seconds/60)%60, (hoursSelected*3600-seconds)%60 ); On 11/12/2008, at 11:03 , Chunk 1978 wrote: i believe i painted myself into a corner here... i have a NSPop

Re: Design patterns: MVC, MVP, Passive View... where is Apple heading???

2008-12-09 Thread Nathan Day
I have seen that version of the MVC pattern a lot where the View and Model are directly connected sometimes only one way, never really understood how it was supposed to work, my understanding is that with cocoa the model and view where never directly connected to each and it was the purpose

Re: Multithreading and Mach ports

2008-12-09 Thread Nathan Day
On 10/12/2008, at 07:36 , John Love wrote: Reference: http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/chapter_6_section_5.html#/ /apple_ref/doc/uid/1057i-CH16-SW7 I've got several questions since I'm just starting to investigate Mach Ports.

Re: How to use NSWorkspace?

2008-12-09 Thread Nathan Day
rators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/nathan_day%40mac.com This email sent to [EMAIL PROTECTED] Nathan Day Software Engineer home: +61 (0)2 9356 4874 work: +61 (0)2 8207 8241 mobile: +61 (0

Re: How To Deal With Rounding Errors

2008-12-04 Thread Nathan Day
The way floats work the round will always be to the same number of bits no matter what the order of magnitude (ignoring the extreme values < 2^-1023 for doubles). Check that you haven't let any integers into you calculations. On 04/12/2008, at 7:08 PM, Bridger Maxwell wrote: Hey, Short ve

Re: Asynchronous timers (without a run loop)

2008-12-04 Thread Nathan Day
NSRunLoop use to be based on the function select() (it was in GnuStep anyway), it waits for inputs but also has a single timeout value also, NSRunLoop works out how long the timeout value should be for the shortest NSTimer. If you want to wait on multiple timers without using run NSRunLoop

Re: Correct location to store application data.

2008-12-03 Thread Nathan Day
If the data in the dictionary is simple you could perhaps look at NSUserDefaults, you could use your dictionary file to initialise NSUserDefaults, alternatively you could create a separate file in preferences. Be warned that you can only stick property list types in NSUserDefaults. On 03

Re: self = [super init];

2008-12-03 Thread Nathan Day
Usually self does not change, when the instance returned is different to the initially self then it is because the super init has decided that the initial self is not what it whats so it releases the initially self and returns a different object. This can happen for singltons or cluster obj

Re: Objective 2.0 properties

2008-10-16 Thread Nathan Day
should be copy since the classes all conform to NSCopying. Nathan Day [EMAIL PROTECTED] http://homepage.mac.com/nathan_day/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. C

Re: Converting from HTML

2008-10-16 Thread Nathan Day
ts.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/nathan_day%40mac.com This email sent to [EMAIL PROT

Re: Writing a preference pane that configures hotkeys?

2008-03-27 Thread Nathan Day
mplements a setReadyForHotKeyEvent: method. Do I perhaps have an older version of the NDHotKeyControl source code? Surely there is something I'm missing here. I figure I can take your word for it on this, since you wrote the class and all. ;-) - Brian On Wed, 26 Mar 2008 09:56:01 -0400, Na

Re: Writing a preference pane that configures hotkeys?

2008-03-26 Thread Nathan Day
he moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/nathan_day%40mac.com This email sent to [EMAIL PROTECTED] Nathan Day [EMAIL PROTECTED] http://homepage.mac.com/nathan_day/ __