MacWin
驱动中牛
驱动中牛
  • 注册日期2002-12-16
  • 最后登录2009-05-27
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望44点
  • 贡献值0点
  • 好评度29点
  • 原创分0分
  • 专家分0分
阅读:2980回复:16

How to eject volumme on os x?

楼主#
更多 发布于:2003-03-19 10:19
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.
Chen
moqingsong
论坛版主
论坛版主
  • 注册日期2002-04-07
  • 最后登录2011-02-03
  • 粉丝0
  • 关注0
  • 积分74分
  • 威望71点
  • 贡献值0点
  • 好评度10点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-03-19 11:14
我也发现10.1和10.2有很多不同。
比如jni的调用方法就很不一样。
按第一贴的“给分”键,给分。
mike_wang
驱动中牛
驱动中牛
  • 注册日期2003-01-22
  • 最后登录2012-01-04
  • 粉丝0
  • 关注0
  • 积分91分
  • 威望10点
  • 贡献值0点
  • 好评度9点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2003-03-20 15:25

很简单的,看看你的 kernel code, 你可以看到系统 支持很多的
特殊键值,such as mute, volume up ,volume down,etc,采取iokit用的消息机制就可以弹出any volume.


有没有 做苹果编程的岗位,下岗的感觉不好?
沈成贵


MacWin
驱动中牛
驱动中牛
  • 注册日期2002-12-16
  • 最后登录2009-05-27
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望44点
  • 贡献值0点
  • 好评度29点
  • 原创分0分
  • 专家分0分
地板#
发布于: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.
Chen
mike_wang
驱动中牛
驱动中牛
  • 注册日期2003-01-22
  • 最后登录2012-01-04
  • 粉丝0
  • 关注0
  • 积分91分
  • 威望10点
  • 贡献值0点
  • 好评度9点
  • 原创分0分
  • 专家分0分
地下室#
发布于: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
mike_wang
驱动中牛
驱动中牛
  • 注册日期2003-01-22
  • 最后登录2012-01-04
  • 粉丝0
  • 关注0
  • 积分91分
  • 威望10点
  • 贡献值0点
  • 好评度9点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2003-03-21 13:27
Oh, the best method is:

  Give user a update-package!!

OSX updates every day.
MacWin
驱动中牛
驱动中牛
  • 注册日期2002-12-16
  • 最后登录2009-05-27
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望44点
  • 贡献值0点
  • 好评度29点
  • 原创分0分
  • 专家分0分
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]
Chen
mike_wang
驱动中牛
驱动中牛
  • 注册日期2003-01-22
  • 最后登录2012-01-04
  • 粉丝0
  • 关注0
  • 积分91分
  • 威望10点
  • 贡献值0点
  • 好评度9点
  • 原创分0分
  • 专家分0分
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

 
MacWin
驱动中牛
驱动中牛
  • 注册日期2002-12-16
  • 最后登录2009-05-27
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望44点
  • 贡献值0点
  • 好评度29点
  • 原创分0分
  • 专家分0分
8楼#
发布于:2003-03-21 16:55
Thanks. I have seach the key word of it, but can not find it out.
Chen
paranoid
驱动牛犊
驱动牛犊
  • 注册日期2003-02-13
  • 最后登录2004-12-03
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
9楼#
发布于:2003-03-24 09:31
appleUsbKeyboardPro这个例子好像只是eject CD吧?
MacWin
驱动中牛
驱动中牛
  • 注册日期2002-12-16
  • 最后登录2009-05-27
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望44点
  • 贡献值0点
  • 好评度29点
  • 原创分0分
  • 专家分0分
10楼#
发布于:2003-03-24 12:33
paranoid: How to get the code of \"appleUsbKeyboardPro\"?thanks.
Chen
mike_wang
驱动中牛
驱动中牛
  • 注册日期2003-01-22
  • 最后登录2012-01-04
  • 粉丝0
  • 关注0
  • 积分91分
  • 威望10点
  • 贡献值0点
  • 好评度9点
  • 原创分0分
  • 专家分0分
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.
paranoid
驱动牛犊
驱动牛犊
  • 注册日期2003-02-13
  • 最后登录2004-12-03
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
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.
MacWin
驱动中牛
驱动中牛
  • 注册日期2002-12-16
  • 最后登录2009-05-27
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望44点
  • 贡献值0点
  • 好评度29点
  • 原创分0分
  • 专家分0分
13楼#
发布于:2003-03-25 10:26
Thanks u.
Chen
robin_wxg
驱动小牛
驱动小牛
  • 注册日期2003-02-10
  • 最后登录2009-09-21
  • 粉丝0
  • 关注0
  • 积分60分
  • 威望6点
  • 贡献值0点
  • 好评度6点
  • 原创分0分
  • 专家分0分
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.
MacWin
驱动中牛
驱动中牛
  • 注册日期2002-12-16
  • 最后登录2009-05-27
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望44点
  • 贡献值0点
  • 好评度29点
  • 原创分0分
  • 专家分0分
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]
Chen
MacWin
驱动中牛
驱动中牛
  • 注册日期2002-12-16
  • 最后登录2009-05-27
  • 粉丝0
  • 关注0
  • 积分2分
  • 威望44点
  • 贡献值0点
  • 好评度29点
  • 原创分0分
  • 专家分0分
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.
Chen
游客

返回顶部