• 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: readInBackgroundAndNotify not working?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: readInBackgroundAndNotify not working?


  • Subject: Re: readInBackgroundAndNotify not working?
  • From: Greg Parker <email@hidden>
  • Date: Mon, 24 Aug 2009 03:45:07 -0700

On Aug 23, 2009, at 8:12 PM, Adam R. Maxwell wrote:
On Aug 23, 2009, at 8:01 PM, Kyle Sluder wrote:
On Aug 23, 2009, at 7:42 PM, PCWiz <email@hidden> wrote:
name:@"NSFileHandleReadCompletionNotification"

NSFileHandleReadCompletionNotification is the name of a constant, not necessarily its value.

Right, and that was my first thought, too! I've never used NSFileHandle for this purpose, either, so wrote a quick test app to see what would happen. It turns out that the value is the same as the constant in this case, though

Doesn't matter. Use the framework-provided constant. Some code depends on seeing the same address as the framework's variable. Such code will fail if you use a different copy of the same characters.



-- Greg Parker email@hidden Runtime Wrangler


_______________________________________________

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: readInBackgroundAndNotify not working?
      • From: "Adam R. Maxwell" <email@hidden>
References: 
 >readInBackgroundAndNotify not working? (From: PCWiz <email@hidden>)
 >Re: readInBackgroundAndNotify not working? (From: Kyle Sluder <email@hidden>)
 >Re: readInBackgroundAndNotify not working? (From: "Adam R. Maxwell" <email@hidden>)

  • Prev by Date: Re: I need to convert NSTableView data into something suitable for consumption by a spreadsheet
  • Next by Date: Re: scroll automatically if the text is too long
  • Previous by thread: Re: readInBackgroundAndNotify not working?
  • Next by thread: Re: readInBackgroundAndNotify not working?
  • Index(es):
    • Date
    • Thread