阅读:3074回复:16
How to eject volumme on os x?
How to ecject U Disk\'s volume on mac os x. I work on mac os x 10.1. It seems that 10.1 does not support that .But, 10.2 support it ,is it right?Thanks.
|
|
|
沙发#
发布于:2003-03-19 11:14
我也发现10.1和10.2有很多不同。
比如jni的调用方法就很不一样。 |
|
|
板凳#
发布于:2003-03-20 15:25
很简单的,看看你的 kernel code, 你可以看到系统 支持很多的 特殊键值,such as mute, volume up ,volume down,etc,采取iokit用的消息机制就可以弹出any volume. 有没有 做苹果编程的岗位,下岗的感觉不好? 沈成贵 |
|
地板#
发布于:2003-03-20 17:34
Thanks the reply of Mike. I have thought about your way to eject the volume.But I know litte about that.Would u like
tell me more about it.Thanks. |
|
|
地下室#
发布于:2003-03-21 13:23
I think, to do the EJECT work must do in kernel mode, one year ago, I eject the CD, so many many types of CD,I can not enumerate them, but in kernel mode, this is easy, now, some data can not be recalled, but you can get infomation from appleUsbKeyboardPro(like this name) driver, you should have this sourcecode, now,right?
Study it, you can find work-way of OSX in kernel mode. Sorry, I must go out now, have a interview of finding job. See U. Shen Chengggui |
|
5楼#
发布于:2003-03-21 13:27
Oh, the best method is:
Give user a update-package!! OSX updates every day. |
|
6楼#
发布于:2003-03-21 16:06
Thanks. I have not the sample code of \"appleUsbKeyboardPro:.would u like tell me how to get it .
Someone tell me that he can eject the volume of \"U disk\" with doing little modification for the code \"VolumeToBSDNode\" . I try it ,but fail. Is it the sample code in usb_ddK? [编辑 - 3/21/03 by MacWin] |
|
|
7楼#
发布于:2003-03-21 16:51
Darwen(maybe right) kernel is open, like linux, OSX based on unix, this is to say, lnux technology can be refered.
you can find this driver in www.apple.com, find the opensource information, browse WEB via PPPPPPP. so slow, so you find this info. yourself, I may not help. sorry. shenchenggui |
|
8楼#
发布于:2003-03-21 16:55
Thanks. I have seach the key word of it, but can not find it out.
|
|
|
9楼#
发布于:2003-03-24 09:31
appleUsbKeyboardPro这个例子好像只是eject CD吧?
|
|
10楼#
发布于:2003-03-24 12:33
paranoid: How to get the code of \"appleUsbKeyboardPro\"?thanks.
|
|
|
11楼#
发布于:2003-03-24 16:11
paranoid is right, but we may solve the problem using this way.
only is advice, we study the kernel code and get some info. to help myself, the reference of OSX is rare. good luck. I do not like apple OS. |
|
12楼#
发布于:2003-03-24 20:10
http://www.opensource.apple.com/projects/darwin/6.0/projects.html
paranoid: How to get the code of \"appleUsbKeyboardPro\"?thanks. |
|
13楼#
发布于:2003-03-25 10:26
Thanks u.
|
|
|
14楼#
发布于:2003-03-25 10:51
MacWin,
Why do not often browse Apple.com for more information, I\'ve done lot of such work during my development, I konw your condition is much better than me. |
|
15楼#
发布于:2003-05-22 13:52
I have updated my OS X 10.1 to 10.2 . So , eject the volume is so easy (just one api) . But more bugs found with my program . I will list them after more testing .
[编辑 - 5/22/03 by MacWin] |
|
|
16楼#
发布于:2003-06-25 14:56
The API FSEjectVolmeInfo() can not be supported by Mac OS 10.1 but Mac OS 10.2 do. So I will just call it on 10.2 . But the utility can not work on 10.1.When run it, it shows \"The application MyAP has unexpectedly quit.\" . Do you known why? Thanks.
|
|
|