• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: usb notification
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: usb notification


  • Subject: Re: usb notification
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 8 Sep 2009 17:55:24 -0700

On Tue, Sep 8, 2009 at 5:47 PM, Chris Carson<email@hidden> wrote:
>        IOReturn                kernErr;

You never seem to check for errors.  Please ensure your calls are
succeeding by checking the value of this variable.  If they're
failing, use macerror(1) to look up the error number.

> - (id) init
> {
>        [super init];
>
>        if (self) {

This is not the correct initializer pattern.  You need to assign to self here.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: usb notification
      • From: Chris Carson <email@hidden>
References: 
 >usb notification (From: Chris Carson <email@hidden>)

  • Prev by Date: Re: NSImage with multiple representation sizes
  • Next by Date: Re: NSPDFImageRep Memory Leak?
  • Previous by thread: usb notification
  • Next by thread: Re: usb notification
  • Index(es):
    • Date
    • Thread