Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 05-07-2009, 04:47 AM   #3 (permalink)
carbcycle
New Member
 
Join Date: May 2009
Posts: 3
carbcycle is on a distinguished road
Default

Quote:
Originally Posted by _pi View Post
use NSLog to output strings

NSString has a class method called stringWithString that takes care of alloc, init and handling the release of the newly allocated string object.

As a rule of thumb: class methods that return a "ready-to-go" object also take care of memory management, so no need to call release on an object created through a class method.


Hope this helps.
Thank for the quick reply.

I understand what you are saying about "ready-to-go" object but not sure how I would use NSLog in my code. Can you demonstrate?

Cheers.
carbcycle is offline   Reply With Quote
 

» Advertisements
» Online Users: 442
19 members and 423 guests
13dario13, 7twenty7, baja_yu, bhsu21, Bryan1, ClerurcifeDer, Duncan C, gdogdev, GraffitiCircus, guusleijsten, HowEver, iAppDeveloper, iekei, ilmman, Paul Slocum, PavelMik, QuantumDoja, stanny, yys
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,637
Threads: 94,101
Posts: 402,822
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jessicagx69
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 11:22 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.