I didn't ask for advice.

I asked a simple question.

And it still stands.

- Chuck





On March 24, 2008, Sherm Pendley wrote:

On Sun, Mar 23, 2008 at 11:59 PM, charlie <[EMAIL PROTECTED]> wrote:


So, today I decided to try this for my next project...

- (void)setController:(id)controller
{
 if (!controller)
 {
   return;
 }
 self->controller = [controller retain];
}

I works fine.  But does not fix the warning itself.

So, the question stands.... How do I suppress the warning.


You suppress the warning by fixing the problem it's warning you about. Yes,
it's just that simple.

For example, the above could be rewritten as:

- (void)setController:(id)newController {
    if (!controller) return;
    controller = [newController retain];
}

sherm--

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to