Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Dec 3, 2011, 06:04 AM   #1
waqarg
macrumors newbie
 
Join Date: Dec 2011
Disk Access at raw level

Hi,

Em new to mac, em not familiar with xcode and its libraries, i want to access my hard drive sectors means want to read them using objective c in cocoa application... any help would be highly appreciated....
Regards,
waqarg is offline   0 Reply With Quote
Old Dec 3, 2011, 12:56 PM   #2
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
There are no Objective-C classes out of the box for this. Of course you can write your own. Simplest way is to use DiskArbitration framework to get the available drives, grab the BSD name (kDADiskDescriptionMediaBSDNameKey) from the DADiskRef and feed that to opendev().

Internal/startup drives requires root permission to open though.
kainjow is offline   0 Reply With Quote
Old Dec 5, 2011, 03:38 AM   #3
waqarg
Thread Starter
macrumors newbie
 
Join Date: Dec 2011
Hi kainjow!

Thanks a lot for reply, now em going to check what you have suggested....
For others, any other simpler way or suggestion could be an absolute pleasure for me.....
waqarg is offline   0 Reply With Quote
Old Dec 5, 2011, 06:35 AM   #4
foidulus
macrumors 6502a
 
Join Date: Jan 2007
Not really going to find anything simpler, Apple's Objective-C frameworks were never really designed to go that low level, so you are stuck using the C API for most things(and as luck would have it, all valid C code is valid Objective-C code )
foidulus is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Raw Disk Image for iPhone 4.3.5 ? Sharina Jailbreaks and iOS Hacks 0 Aug 30, 2011 04:49 PM
Google analytics not tracking at overview level? Legacy code? thecritix Web Design and Development 0 Aug 26, 2009 12:06 PM
Not sure where to ask this, but auto complete at OS level? Shivetya OS X 1 Apr 7, 2009 03:53 PM
Do I need a Mac at home for remote disk access with new Airport mac jones Mac Peripherals 3 Mar 11, 2009 12:02 AM
CSS at beginners level Southerner Web Design and Development 11 Feb 19, 2008 10:55 AM


All times are GMT -5. The time now is 06:15 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC