• 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: Chris Carson <email@hidden>
  • Date: Tue, 8 Sep 2009 19:41:25 -0700 (PDT)

> >        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.

IOServiceAddMatchingNotification() returns no errors (0).

> > - (id) init
> > {
> >        [super init];
> >
> >        if (self) {
>
> This is not the correct initializer pattern.  You need
> to assign to self here.
>
> --Kyle Sluder

Changed this to self = [super init];

However, the issue still persists.

Chris




_______________________________________________

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: Dave Keck <email@hidden>
References: 
 >Re: usb notification (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Framework versioning and handling multiple OS SDK's?
  • Next by Date: Re: KVO can be unsafe in -init?
  • Previous by thread: Re: usb notification
  • Next by thread: Re: usb notification
  • Index(es):
    • Date
    • Thread