Re: About "[super dealloc];"

2009-06-01 Thread Jelle De Laender
You need to call [super dealloc] when you want to call the dealloc method of the super of your class. (logical, isn't?). Every class has default the next dealloc method: -(void)dealloc { [super dealloc]; } But, when you want to release classes you have initialised in your object, yo

Re: Several Questions

2009-06-01 Thread Jelle De Laender
why should your app stops responding? Do you want to detect time-outs (network-times, IO-timeouts, ...) or will your app be crap and full with bugs? On 01 Jun 2009, at 13:19, Ammar Ibrahim wrote: On Mon, Jun 1, 2009 at 6:04 AM, Chris Hanson wrote: On May 30, 2009, at 11:18 PM, Ammar Ib

Re: Several Questions

2009-05-31 Thread Jelle De Laender
Can you give us so more details? For example: What will the app do? Your description is very strange, lol. But indeed, you should create a normal cocoa app that do the stuff you want to do (UI + the real stuff), and a little daemon that checks every X minutes if the other app is running:

Re: String Comparison and return values

2009-05-26 Thread Jelle De Laender
A NSNumber has a 'stringValue' method, but I don't know why you want to compare them at String-level. Jelle, On 26 May 2009, at 10:07, John Ku wrote: That seems to make sense to use NSNumber instead of NSString, thanks it works! But I would think NSString would accept the return numbers a

Storing a password (iPhone)

2009-05-04 Thread Jelle De Laender
Hi What is the best way to store a password on the iPhone? I can't take the MD5 hash because I need to be able to work with the original password. Should I create a custom class (with 2 strings) and save them with NSKeyedArchiver with the idea: nobody will read the files (it's impossible:

Re: [iPhone] NumberPad with the dot

2009-03-17 Thread Jelle De Laender
other applications (no marker), so this is the best way to implement a own keyboard? CodingMammoth.com Jelle De Laender i...@codingmammoth.com On 17 Mar 2009, at 23:22, Dave DeLong wrote: You fake it. Have a non-editable textfield with a custom UILabel subclass on top of it. When the UILabel

Re: [iPhone] NumberPad with the dot

2009-03-17 Thread Jelle De Laender
yboard, so we ended up implementing our own: http://www.polarbearfarm.com/convert/index.html Layton Duncan Polar Bear Farm http://www.polarbearfarm.com On 17/03/2009, at 11:57 AM, Jelle De Laender wrote: Hi, I was a little bit surprised because the default number pad doesn't contains a

UIView hidden - still drawing the subviews? [SOLVED]

2009-03-17 Thread Jelle De Laender
It seems that the new Interface Builder react very strange on my commands... I've retry it and it works now, just like I expected and just like it should be. So this 'problem' is solved. Begin forwarded message: From: Jelle De Laender Date: Tue 17 Mar 2009 22:32:09 GMT+

UIView hidden - still drawing the subviews?

2009-03-17 Thread Jelle De Laender
Hi I've a UIView with some subviews (most of them are UIButtons). When I hide an UIView (setHidden:YES), I expect that the subviews are also hidden (not drawed)... but the subviews are still visible when I run my code. How can I hide the subviews when I hide a UIView? Should I create a

[iPhone] NumberPad with the dot

2009-03-16 Thread Jelle De Laender
Hi, I was a little bit surprised because the default number pad doesn't contains a dot. I've created an application and the user need to enter decimal numbers. The default number pad is: http://h4xr.org/ifm4 (see UITextInputTraits Protocol Reference) There is an empty space at the left-bo

Re: performSelectorOnMainThread

2009-01-10 Thread Jelle De Laender
Don't try to return it but work with 'call by reference' (in stead of call by value). Note: use also a class and not a primitive type, for example: NSNumber CodingMammoth Jelle De Laender i...@codingmammoth.com On 10 Jan 2009, at 20:00,

Re: How to obtain icon displayed by Finder for a file

2009-01-07 Thread Jelle De Laender
Did you try - (NSImage *)iconForFile:(NSString *)fullPath from NSWorkSpace? CodingMammoth Jelle De Laender i...@codingmammoth.com On 07 Jan 2009, at 22:42, David wrote: Hello,Is there a way to obtain the icon that finder uses to display for a file system object? Such things as the