FROM : Bill Bumgarner
DATE : Sun Feb 03 22:49:56 2008
On Feb 3, 2008, at 12:45 PM, George Greene wrote:
> int main (int argc, const char * argv[]) {
>
> Song *song1 = [ [ Song alloc ] init ];
> song1.name= @"We Have Exposive" ;
> [ song1 setArtist: @"The Future Sound Of Londown" ];
>
> Song *song2 = [ [ Song alloc ] init ];
> [ song2 setName: @"Loops of Fury" ];
> [ song2 setArtist: @"The Chemical Brothers" ];
>
> // Display Object
> NSLog( @"Song 1: %@", song1.name );
> NSLog( @"Song 2: %@", song2.name );
>
> return 0;
> }
Either enable Garbage Collection or surround the above w/an
autorelease pool. I suggest GC.
Good songs, btw.
b.bum
DATE : Sun Feb 03 22:49:56 2008
On Feb 3, 2008, at 12:45 PM, George Greene wrote:
> int main (int argc, const char * argv[]) {
>
> Song *song1 = [ [ Song alloc ] init ];
> song1.name= @"We Have Exposive" ;
> [ song1 setArtist: @"The Future Sound Of Londown" ];
>
> Song *song2 = [ [ Song alloc ] init ];
> [ song2 setName: @"Loops of Fury" ];
> [ song2 setArtist: @"The Chemical Brothers" ];
>
> // Display Object
> NSLog( @"Song 1: %@", song1.name );
> NSLog( @"Song 2: %@", song2.name );
>
> return 0;
> }
Either enable Garbage Collection or surround the above w/an
autorelease pool. I suggest GC.
Good songs, btw.
b.bum
| Related mails | Author | Date |
|---|---|---|
| George Greene | Feb 3, 21:45 | |
| Kyle Sluder | Feb 3, 22:41 | |
| Bill Bumgarner | Feb 3, 22:49 | |
| George Greene | Feb 3, 23:14 | |
| Bill Bumgarner | Feb 3, 23:20 | |
| George Greene | Feb 3, 23:21 | |
| Quincey Morris | Feb 3, 23:37 |






Cocoa mail archive

