• 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: NSNumber pointerValue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNumber pointerValue


  • Subject: Re: NSNumber pointerValue
  • From: Björn Carlström <email@hidden>
  • Date: Tue, 18 Nov 2003 09:38:56 +0100

2003-11-17 kl. 23.58 skrev Wade Tregaskis:

Does anybody know why this would yield different results before and after being on the pasteboard?

Presumably NSValue assumes if it's going into a pasteboard that pointer references are no longer valid, so it then returns nil.

How would it know its a pointer? I'm typcasting it into an integer value?

Obviously if the receiving app is also the one which put the data into the pasteboard to start with, the pointer *is* valid... seems like a simple oversight on an otherwise good protection feature.

Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSNumber pointerValue
      • From: Wade Tregaskis <email@hidden>
References: 
 >Re: NSNumber pointerValue (From: Wade Tregaskis <email@hidden>)

  • Prev by Date: Animated GIF from Cocoa app help-file?
  • Next by Date: Re: NSNumber pointerValue
  • Previous by thread: Re: NSNumber pointerValue
  • Next by thread: Re: NSNumber pointerValue
  • Index(es):
    • Date
    • Thread