Re: defining NSColor constants

2009-08-07 Thread Arie Pieter Cammeraat
Thanks everyone, I'll try your tips. I almost don't dare to compare, but it's a lot more difficult than in REALBasic to declare a global color. But on the other side... who cares? Op 6-aug-2009, om 17:27 heeft Sean McBride het volgende geschreven: On 8/6/09 8:38 PM, Graham Cox said:

defining NSColor constants

2009-08-06 Thread Arie Pieter Cammeraat
In my app, I use several colors many times. I'd like to define them in a separate file or class. Is there another way to do this than: #define kNiceBlueColor [NSColor colorWithRed: 20 green: 20 blue: 240 alpha:1]; I would like a more obj-c style, like globals.h:

Re: Two right buttons on UINavigationBar?

2009-08-06 Thread Arie Pieter Cammeraat
you might: * change the buttons programmatically every time. * drag 2 UIBarButtonItems in your InterfaceBuilder file, set the connections and the captions in IB. Then in XCode, you can change the buttons by using NSArray * topLevelObjs = nil; topLevelObjs = [[NSbundle mainBndle]

Re: searching a string in big file

2009-06-14 Thread Arie Pieter Cammeraat
you can use some methods of NSString, but I doubt wether NSString performs well with really big string. I once tried to work with the Unix tool 'grep' for searching something in the iTunes Library xml file. That was amazingly fast! You can use it in cocoa with NSPipe etc. Op 13-jun-2009,

Re: dumb question

2009-06-12 Thread Arie Pieter Cammeraat
do you also use it across several classes? Op 12-jun-2009, om 12:36 heeft Chunk 1978 het volgende geschreven: maybe this coffee hasn't kicked in yet and undoubtedly there is a simple solution, but i'm trying unsuccessfully to refactor some code, and i'd like to set the following as a static

Growing UITextView in UITableView

2009-06-11 Thread Arie Pieter Cammeraat
I'm trying create a UITableView like the one Apple uses for composing an email in its mail app. As far as I know, it is a UITableView with UITextView for the mailmessage. There has been written a lot about this topic yet, but I haven't found the solution for my problem. I managed to only