reformat drive to HFS via API

2010-05-25 Thread r c
I would like to be able to reformat a flash drive from control application, but 
it appears that there is no public API that allows this kind access.  Am I 
missing something in the documentation?  Or do I do something like call out to 
diskutil to make it happen?

Rich Collyer
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


RESOLVED: Blocked Reads

2010-03-17 Thread r c
Thank you all for your ideas.  With various suggestions, I found a variation of 
the CDRomSample
code that seems to work well.  The sample does reads on the BSN Name of
the device root (i.e. /dev/rdisk#).  I have found that if I dig a
little deeper into the IORegistry for the device (i.e. /dev/rdisk#s0),
the code works.

Rich






colors wrote:

 I am running into a problem with anti-virus software.  I need to be able to 
 read a file from a USB CD and I need the read to actually go over the USB bus.


Why do you need the read to go over the USB bus?  If the OS itself has cached 
some disk data, why force it to be transferred over the bus again?

What are you trying to accomplish?



 Does anyone have any thoughts about 1) what the AV SW is doing?, and 2) how 
 to get around what it is doing?


If there were a simple way to get around the AV SW, then malware would be able 
to use it to get around the AV SW, thus nullifying the AV SW.

  -- GG

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/iseecolors%40sbcglobal.net

This email sent to iseecol...@sbcglobal.net
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


determinate NSProgressIndicator animation

2009-08-07 Thread r c
In a determinate NSProgressIndicator the blue portion animates in some 
application (Finder copy is an easy example).  I have noticed that this is not 
always the case.  My guess is that the animation takes place in the main thread 
of the application, but if the main thread is busy, the animation does not take 
place.

Is my guess basically correct?  Is there an easy way around this - other than 
spin off a bunch of threads.

Rich Collyer
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: determinate NSProgressIndicator animation

2009-08-07 Thread r c
I have read that document, but it indicates that this method (as well as start 
and stopAnimation:) only apply to indeterminate progress indicators - is this 
not true?

Rich Collyer




From: Sean McBride s...@rogue-research.com
To: r c iseecol...@sbcglobal.net; cocoa-dev@lists.apple.com
Sent: Friday, August 7, 2009 10:09:47 AM
Subject: Re: determinate  NSProgressIndicator animation

On 8/7/09 10:06 AM, r c said:

In a determinate NSProgressIndicator the blue portion animates in some
application (Finder copy is an easy example).  I have noticed that this
is not always the case.  My guess is that the animation takes place in
the main thread of the application, but if the main thread is busy, the
animation does not take place.

Is my guess basically correct?  Is there an easy way around this - other
than spin off a bunch of threads.

Have you read the NSProgressIndicator docs?  Did you see the
setUsesThreadedAnimation: method?

--

Sean McBride, B. Engs...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer  Montréal, Québec, Canada
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com