macos-carbon
Equivalent Carbon 32-bit call for using in 64-bit application - GetApplicationEventTarget()
I\'m writing a 64-bit Cocoa application. I need to register for global key events. So I wrote this piece of code :[详细]
2023-01-01 04:09 分类:问答No Carbon Human-Interface-Toolbox in OSX 64-bit binaries?
I开发者_StackOverflow中文版 get the impression that Carbon Human Interface Toolbox does not work in 64-bit binaries.[详细]
2022-12-31 02:40 分类:问答How to launch "Choose Application" dialog on Mac?
I am using LSOpenItemsWithRole() to open any file from my application. It works 开发者_如何学JAVAfine for all files which has a default application on Mac, but for the files which cannot be opened wit[详细]
2022-12-30 19:30 分类:问答Strange behaviour when posting CGEvent to PSN
EDIT - not getting much input on this so here\'s the skinny.I\'m posting keyboard events to a PSN.I then switch to another window, post some more events (this time tat session level) and switch back t[详细]
2022-12-30 17:20 分类:问答Mac event tap just delays discarded events
I\'m trying to write some code that discards all keyboard and mouse events when enabled on Mac OSX 10.6. My code runs as the root user. The approach I\'m taking is to create an event tap that discards[详细]
2022-12-29 20:36 分类:问答MenuRef GetControl32BitValue always return 0
Hello i\' need to use a pop-up menu, witch is created dynamically. OSErr err = GetBevelButtonMenuHandle(m_pRecallAOptionalButton, &m_pRecallAMenuRef);[详细]
2022-12-29 17:54 分类:问答Attaching user data to AXObserver
I am using an AXObserver to开发者_开发百科 monitor when a window is closed.In the callback, I am just raising an NSNotification.All working well.[详细]
2022-12-29 05:06 分类:问答Clip mouse movement in Carbon
How can I clip the mouse movement 开发者_高级运维into a window Region using Carbon?I don\'t think there is any simple way to do it, and that\'s good... it\'s a \"non-Mac-like\" behavior that will frea[详细]
2022-12-28 20:22 分类:问答NSOpenGLView in NSSplitView
When i put an NSOpenglView in NSSplitView, a problem occurs while dragging splitter. The openGLView and SplitView are resizing asynchronously. i found a solution in apple mail list thread http://devel[详细]
2022-12-27 22:23 分类:问答How can you load a font (TTF) from a file using Core Text?
Prior to OSX 10.6, ATSFontActivateFromFileSpecification/ATSFontActivateFromFileReference were available and could be used to l开发者_JS百科oad a font from a file.I can\'t find anything similar in Core[详细]
2022-12-27 19:57 分类:问答