• 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: How do I read sectors of disk in objective c cocoa application?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do I read sectors of disk in objective c cocoa application?


  • Subject: Re: How do I read sectors of disk in objective c cocoa application?
  • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Mon, 5 Dec 2011 11:39:38 +0000

On 5 Dec 2011, at 10:50, Waqar Ahmad wrote:

> I want to access my hard drive sectors means want to read them using objective c in cocoa application [...]

There's no Cocoa API for this: you typically use BSD-level routines, specifically <x-man-page://2/open> to open the raw disk node (for example, /dev/rdisk0) and <x-man-page://2/read> to read data.  There are, however, lots of complications including discovery, permissions, unmounting mounted file systems, and so on.  Which brings us back to Toby Thain question, that is, what are you really trying to do?

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How do I read sectors of disk in objective c cocoa application? (From: Waqar Ahmad <email@hidden>)

  • Prev by Date: Re: How do I read sectors of disk in objective c cocoa application?
  • Next by Date: How do I read sectors of disk in objective c cocoa application?
  • Previous by thread: Re: How do I read sectors of disk in objective c cocoa application?
  • Next by thread: How do I read sectors of disk in objective c cocoa application?
  • Index(es):
    • Date
    • Thread