Loading SampleHardWarePlugin problem

2011-02-24 Thread sheen mac
Hi All, I download the SampleHardwarePlugin code from apple site.Build and copy it into /Library/Audio/Plug-Ins/HAL/ and try totake it using NSBundle.But I got error in cosole. Error loading /Library/Audio/Plug-Ins/HAL/SampleHardwarePlugIn.plugin/Contents/MacOS/SampleHardwarePlugIn: 

Mouse Dragged Event not working using CGEvent

2009-03-04 Thread sheen mac
Hi All, I tried to post a mouse dragged event using CGEvent.But its not working. I added the code here. Thanks In Advance, Sheen CGEventRef eventRef = CGEventCreateMouseEvent(NULL, kCGEventLeftMouseDragged , point,kCGMouseButtonLeft); CGEventSetType(eventRef,

Re: Cancel CGEvent

2008-12-14 Thread sheen mac
: Cancel CGEvent To: sheen4...@yahoo.com Cc: cocoa-dev@lists.apple.com Date: Sunday, December 14, 2008, 12:09 AM Le 13 déc. 08 à 19:19, sheen mac a écrit : Hi All, Is it possible to cancel CGEvent for mouse at CGEventTrapCallBack ?. Could suggest some link info?. Thanks In Advance

Cancel CGEvent

2008-12-13 Thread sheen mac
Hi All, Is it possible to cancel CGEvent for mouse at CGEventTrapCallBack ?. Could suggest some link info?. Thanks In Advance, Sheen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Handle Mouse Event in Background Using Cocoa Framework

2008-12-12 Thread sheen mac
Hi All, Is it possible to monitor mouse event in background using cocoa framework ?. Where can I get more info about this?. Could I monitor the mouse events without using carbon?. Thanks In Advance, Sheen ___ Cocoa-dev mailing list

Wake up Reason

2008-12-10 Thread sheen mac
Hi All, Is it possible to know the reason the MacBook wake from sleep?. Its from wake on lan or ac power change or lid wake ? . Where i will get more info about this?. Thanks in Advance, Sheen ___ Cocoa-dev mailing list

Monitor Magic packet(wake on lan packet )

2008-12-08 Thread sheen mac
Hi All, In my app,I want to monitor the magic packet . Where I will get more info about this. Could give some link for this?.I found a command tcpdump, Could I use this for wol packet monitoring?. Thanks In Advance, Sheen ___ Cocoa-dev

lid open and close notification

2008-12-04 Thread sheen mac
Hi All, In my app needs lid open and close notification.I used ioreg shell call for that (ioreg -n IOPMrootDomain | grep AppleClamshellState | sed 's/^.*=//' ).But when lid close and open it return No. Always the clamshellstate is true.Insomania.kext was loaded before close the lid. Any other

Power code unplug and plug

2008-12-01 Thread sheen mac
Hi All, My app want to get power code plug and unplug notification for MacBook. How can I get that info. Could suggest some info or link about this?. Thanks In Advance, Sheen ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Connecting Menu across Nib

2008-09-08 Thread sheen mac
Hi All, In my app, I have 4 Nib files.In the MainMenu.nib have password asking window and menus. After the password check I loaded another Nib. This Nib has no menu. The MainMenu's menu still in menu bar. But the shortcut keys not working (Preferences and quit ) . This working with

MacBook Wake On Lan

2008-08-20 Thread sheen mac
Hi All, I tried to wake Mac Book ( Its lid closed ) by sending Magic Packets. Its wake up after a few seconds . But it again again went to sleep after that. I tried to load Insomnia.kext after the wake ( lid closed at this time ) . The kext loaded successfully. But it has no effect.I tried to

AuthorizationExecuteWithPrivileges flag error

2008-07-30 Thread sheen mac
Hi All, In my project , I added an executable and created AuthorizationRef successfully.The AuthorizationCopyRights also worked without error.But when AuthorizationExecuteWithPrivileges , it shows the invalid flags error. Kindly help me. Thanks In Advance, Sheen OSStatus

Loading kernal Extension from Cocoa

2008-07-25 Thread sheen mac
Hi All, I want to load Kernal Extension (kext) on run time.I load it using shell command(kextload).The kext file I included in the bundle. I loaded it from there. But Its asking password when executing the command using security framework ( AuthorizationExecuteWithPrivileges) . Any way to load

CFSocket and wifi

2008-06-24 Thread sheen mac
Hi All, I am working on a server-client application for live video broadcast using CFSocket.Its working good in LAN connection.But when I changed it into wifi network .It gets blocked after a few seconds. Kindly help me. Thanks In Advance, Sheen Code === // create socket