I'm unit testing a cocoa app in xcode by injecting a test bundle into
the executable, so the unit tests get run at the end of every build.
Example:
@interface AppController : NSObject {
...
IBOutlet NSButton* startButton;
NSSpeechSynthesizer* speechSynthesizer;
}
@impl
Hi, how do I handle memory management for todoUid below? Do I
have to
retain or autorelease it?
[...snip...]
// Get uid to return
NSString* todoUid = [newTodo uid];
[...snip...]
return todoUid;
}
you could do:
NSString* todoUid = [[[newTodo uid] retain] autorelease];
Y
On Mon, Aug 11, 2008 at 3:12 PM, Sean DeNigris
<[EMAIL PROTECTED]> wrote:
Hi, how do I handle memory management for todoUid below? Do I have
to
retain or autorelease it?
[...snip...]
// Get uid to return
NSString* todoUid = [newTodo uid];
[...snip...]
[newTodo r
Hi, how do I handle memory management for todoUid below? Do I have to
retain or autorelease it?
I'm using Scripting Bridge to communicate with iCal. Also, this is a
sub-routine and todoUid will only be used in the method that calls it.
- (NSString*) saveToiCalTodo: (NSString*) theSummary
Hi, I'm using OCUnit injected into my project executable in xCode to
test a class that contains an NSSynthesizer.
The following didFinishSpeaking method gets called when I run the app
normally, but not in the test.
- (id)init {
...
speechSynthesizer = [NSSpeechSynthesizer new];