Re: Dispose patern (was: Re: GC pros and cons)

2009-06-28 Thread Thomas Davie
On 28 Jun 2009, at 17:47, Konrad Neitzel wrote: Thomas Davie schrieb am 27.06.2009 09:56:31: On 27 Jun 2009, at 01:27, James Gregurich wrote: GC isn't nirvana. it does have its perils and issues, and you have to be aware of them and code around them. You can't just turn it o

Re: GC pros and cons

2009-06-27 Thread Thomas Davie
On 27 Jun 2009, at 14:04, Klaus Backert wrote: On 27. Jun 2009, at 09:54, Thomas Davie wrote: On 27 Jun 2009, at 01:27, James Gregurich wrote: GC isn't nirvana. it does have its perils and issues, and you have to be aware of them and code around them. You can't just turn

Re: GC pros and cons

2009-06-27 Thread Thomas Davie
On 27 Jun 2009, at 01:27, James Gregurich wrote: GC isn't nirvana. it does have its perils and issues, and you have to be aware of them and code around them. You can't just turn it on and some how everything magically works. There is no perfect solution to memory management. I prefer a s

Re: String Comparison and return values

2009-05-26 Thread Thomas Davie
Op 26 May 2009, om 09:56 heeft John Ku het volgende geschreven: Oh so the very first return value from a Dictionary is not actually a string? NSString *itemA = [DictionaryA valueForKey:@"FirstProcessIdentifier"]; I've check the apple document, valueForKey returns an ID... so it return an o

Two untitled documents opening

2009-05-22 Thread Thomas Davie
For some reason, my app loads two untitled documents when launched. I have no custom App delegate or document controller. My current source for my document subclass is at http://paste.lisp.org/display/80645. Adding a couple of breakpoints tells me that NSApp's _doOpenUntitled is called tw

Re: microsoft file formats in cocoa

2009-05-16 Thread Thomas Davie
Op 17 May 2009, om 02:02 heeft Alexander Cohen het volgende geschreven: Does anyone know of any libraries that can read microsoft formats ( xls, ppt, doc, etc, ... )? I'd rther not reinent the wheel if something is already out there. For .doc, go look at the TextEdit sources - it's in the

Re: To run a block of code at every 1 second

2009-03-03 Thread Thomas Davie
On 3 Mar 2009, at 18:17, Nick Rogers wrote: Hi, Here's the code: the following method is running in a separate thread: - (void)myFucntion { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; for (;;)// for loop starts here and is very quick, 100s of iterations per second

Re: (no subject)

2009-02-20 Thread Thomas Davie
On 20 Feb 2009, at 10:59, mukesh wrote: Also give information about the control I should use for this. I suggest the NSTextView, and you typing something into it to tell us what you're actually wanting ;) Bob ___ Cocoa-dev mailing list (Coc

Re: How to draw text with fade out effect?

2009-01-28 Thread Thomas Davie
On 28 Jan 2009, at 16:49, Ricky Sharp wrote: You could render your text to an image first, composite it with the opaque-to-transparent mask and finally draw the result. I used to create images from text, but I ended up with issues regarding resolution independence for some reason. So, you

Re: Targetting Tiger

2009-01-24 Thread Thomas Davie
On 24 Jan 2009, at 22:17, Steve Christensen wrote: On Jan 24, 2009, at 9:22 AM, Thomas Davie wrote: On 24 Jan 2009, at 17:48, Matt Long wrote: Not sure what you mean by "capable of running tiger". If you have a machine capable of running Leopard, it should be able to run ti

Re: Targetting Tiger

2009-01-24 Thread Thomas Davie
On 24 Jan 2009, at 17:48, Matt Long wrote: Not sure what you mean by "capable of running tiger". If you have a machine capable of running Leopard, it should be able to run tiger. Fraid not, the two machines I have available to develop on are too new to run tiger – there's no drivers for them

Targetting Tiger

2009-01-24 Thread Thomas Davie
Hi, I'm in a sticky situation. I personally have no machine capable of running tiger, but my customer needs me to provide a tiger version of my app. I attempted to create a build that targeted tiger, but they are reporting that it is failing. What's going wrong: The application crashes

Re: firewall api

2009-01-23 Thread Thomas Davie
On 24 Jan 2009, at 07:26, Chris Benedict wrote: On Jan 23, 2009, at 2:13 AM, Andrew Farmer wrote: On 22 Jan 09, at 14:38, Chris Benedict wrote: First, I'm pretty new to Mac OS X programming so please bear with my ignorance. I was hoping to get a bit of quick advice. I'm wanting to write

Re: A Data Object in Cocoa

2009-01-09 Thread Thomas Davie
On 9 Jan 2009, at 16:13, Andy Lee wrote: I haven't checked, but I suspect the compiler chooses the right thing, since this is only a warning. Maybe someone knows a way to disable the warning? In Java, I wouldn't be surprised if there were a way to enable a similar warning. The compiler

Re: A Data Object in Cocoa

2009-01-09 Thread Thomas Davie
On 9 Jan 2009, at 15:53, Jens Bauer wrote: Hi Nik, self is a pointer, so you might want to change "self." into "self->" No need to do that – assuming that label, pin and seed are declared as properties, which, this being a container class I guess they are. This also destroys the need to

Re: shareware licensing, aquatic prime?

2008-12-26 Thread Thomas Davie
On 26 Dec 2008, at 08:22, aaron smith wrote: hey all, I've been looking around for different licensing techniques, I've come across aquatic prime which looks pretty secure. but after reading quite a few debates about it, it makes me skeptical. is there anyone out there who uses it, or can vouch

Re: Core Data vector modeling query

2008-12-01 Thread Thomas Davie
On 1 Dec 2008, at 15:59, Erik Buck wrote: I use Core Data to store large amounts of 3D vector data. I solved your problem in the following way: I have a "Vector3D" entity that you can think of as an "end point" in your model. My Vector3D entity has x,y,z attributes. I have a "Vector3DR

Re: Crash when closing window from the menu

2008-12-01 Thread Thomas Davie
On 1 Dec 2008, at 14:47, Andre Masse wrote: Hi, I've a strange bug that happens if the window is closed by choosing the "Close" menu and not by clicking in the window's close box. The window contains master/detail views. I can prevent the crash if I set the master's table view datasourc

Garbage collection and root objects

2008-11-28 Thread Thomas Davie
Hi, I'm having a problem with a simple garbage collected app in which my NSDocument subclass appears to be becoming invalid (without the finalizer being called though). This only happens on the release build, so I guess it's something to do with the optimizing compiler using a less cons

Re: NSTimer does NOT repeat, why ?

2008-09-18 Thread Thomas Davie
On 18 Sep 2008, at 11:18, Florian Soenens wrote: Hi list, anyone knows why in this simple piece of code, the method testTimer is only called once and not every 2 seconds? Thanks in advance; Florian. #import "Controller.h" @implementation Controller -(void) awakeFromNib { NSLog(@

Re: (no subject)

2008-09-04 Thread Thomas Davie
On 4 Sep 2008, at 12:54, [EMAIL PROTECTED] wrote: Hi All, I need to create a plug-in for safari. It should be a toolbar and when I'm installing it, it has to a prompt user to enter personal info and should be stored in same computer. When I'm using browser, where I need to fill the data

Re: Displaying time

2008-08-22 Thread Thomas Davie
On 22 Aug 2008, at 15:47, Negm-Awad Amin wrote: Am Fr,22.08.2008 um 15:45 schrieb Thomas Davie: Using a timer isn't too bad. Running at two updates per second should be acceptable since you're sampling at twice the highest "event" frequency. You might want to go a b

Re: Displaying time

2008-08-22 Thread Thomas Davie
Using a timer isn't too bad. Running at two updates per second should be acceptable since you're sampling at twice the highest "event" frequency. You might want to go a bit faster and maybe at a slightly odd multiple of one second to make sure you don't end up with a constant half-second

Re: !foo vs foo == nil

2008-08-21 Thread Thomas Davie
On 21 Aug 2008, at 09:06, Jules Colding wrote: On 21/08/2008, at 01.56, John C. Randolph wrote: On Aug 20, 2008, at 4:15 PM, Torsten Curdt wrote: There was a common perception that NULL is not really the same as nil. But seems like in the end it really is (void*)0. They differ in typ

Re: How to enumerate directory contents?

2008-08-17 Thread Thomas Davie
On 17 Aug 2008, at 17:39, Nicolas Goles wrote: Hi, this is my first message here, but I have been following the list for a while. I have an application where I need the user to be presented with an OpenPanel, then the user will be able to select a directory. The thing is that the only thin

Re: Dumb Q

2008-08-06 Thread Thomas Davie
On 6 Aug 2008, at 15:57, William Squires wrote: What's the proper way to make a C/ObjC program (Foundation tool) be used with the pipe operator? I want to make a simple filter that takes the output of "ls -la" and reformats it to appear more like the MS-DOS directory listing. So, I would

Re: How to Delay, Wait, Pause...

2008-05-25 Thread Thomas Davie
On 25 May 2008, at 11:22, Steve Steinitz wrote: Hello, Thank you Jens Alfke, Peter Burtis and Stephen Joseph Butler for your excellent, quick and helpful replies. [SNIP] from your method. Stephen warns that the host method needs to be re- entrant or guard against multiple entries. I

Re: expose - the algorithm

2008-05-07 Thread Thomas Davie
On 8 May 2008, at 06:04, Jens Alfke wrote: On 7 May '08, at 8:50 PM, John Clayton wrote: Does anyone know of literature or code / algorithms that I can look at to learn about how this is done or which approaches are possible? The good news is that some of the details must be public, since

Re: "hooking" into another app

2008-04-14 Thread Thomas Davie
Someone may correct me if I'm wrong, but that sounds a lot like something that has been very very deliberately left out of any API... I want to write an app that I'd like to have "hook" into a text box in Safari and log your IDs, passwords, and bank account status. Thanks Bob On 14 Apr 20

Re: Best Way To Lookup From a Huge Table

2008-03-17 Thread Thomas Davie
I don't think this is a huge table, and hence you're probably best going (as others have suggested) with a hash table of some sort. Your other alternative if it gets up to a larger size would be a decary tree. Use each digit from the number you're looking up to index the tree. Then you h

<    1   2