macos-carbon Questions
1
Solved
I've installed a Apple Event handler for URL's in my app:
OSStatus e = AEInstallEventHandler( kInternetEventClass,
kAEGetURL,
NewAEEventHandlerUPP(AppleEventProc),
(SRefCon)this,
false);
And...
Wrongheaded asked 25/11, 2011 at 6:29
2
Solved
I know others have asked similar questions, but I haven’t seen a definitive answer, and I’m still stuck. I’m trying to write a Swift function that takes a hardware-generated keyboard scan code, suc...
Aden asked 31/1, 2016 at 5:28
5
Solved
I have some cross platform DNS client code that I use for doing end to end SMTP and on windows I can find the current DNS server ip addresses by looking in the registry. On the Mac I can probably u...
Whimsical asked 4/11, 2008 at 1:14
8
Was someone able to compile the Bochs simulator under Snow Leopard. Leopard worked fine for me but under Snow Leopard I get alot of problems related to the Carbon library...
Ok, some more informat...
Mac asked 4/11, 2009 at 23:10
3
Solved
I am interested in simulating a mouse click event/keyboard stroke on Mac OS X without actually moving the mouse.
In Windows, it is possible to do this using messages:
win32: simulate a click with...
Pacificia asked 25/8, 2012 at 15:12
3
Solved
I want to set a certain window, from an external app (for example textedit), to be front most.
I can successfully get a reference to the app itself using GetFrontProcess, and check whether it is f...
Spanos asked 22/1, 2010 at 1:14
0
In my project, i can get the window which mouse is on, and i can use AXUIElementSetAttributeValue(element, kAXFrontmostAttribute, kCFBooleanTrue);
to make the window to top level temporarily. So i...
Appurtenance asked 18/9, 2015 at 2:42
3
Solved
I would like to add a new item to the Finder sidebar. I found out that the Finder keeps the list of "places" in `~/Library/Preferences/com.apple.sidebarlists.plist. I was able to read the file usin...
Linzy asked 31/1, 2011 at 15:16
5
Solved
I recently got bored and fired up my old Mac OS Classic emulator, and then got nostalgic for writing old-school applications for the system. So, my question:
Where can I get dev tools that ...
Daltondaltonism asked 27/5, 2010 at 22:16
3
Solved
I'm using CGEventTapCreate to "steal" media keys from iTunes when my app is running. The code inside of the callback that I pass to CGEventTapCreate examines the event, and if it finds that it's on...
Wiggins asked 3/6, 2010 at 19:27
3
Solved
In Python 2, I can use the following code to resolve either a MacOS alias or a symbolic link:
from Carbon import File
File.FSResolveAliasFile(alias_fp, True)[0].as_pathname()
where alias_fp is t...
Lying asked 20/1, 2014 at 21:44
1
Solved
I am developing a multi-platform presentation application which consists of two parts: An editor part and a viewer part. Both parts are developed as separate programs. The user edits the individual...
Grefe asked 8/12, 2014 at 14:3
5
I am really hoping someone can help me as I have spent at-least 15 hours trying to fix this problem. I have been given a task by a potential employer and my solution is to use graphite/carbon/colle...
Kingly asked 10/11, 2013 at 20:22
4
Is there a way to globally hide the mouse cursor for all apps in Cocoa (or Carbon)? Or at least replace it with something else?
EDIT: Thanks for the input guys, but turns out Daniel Jalkut found t...
Callery asked 11/9, 2009 at 16:52
2
Solved
I'm integrating a GTK# application into Mac OS X. GTK on Mac OS X is a wrapper over some Cocoa and Carbon fundamentals. We have some platform-specific stuff directly using Carbon global menu APIs (...
Gefen asked 17/11, 2010 at 2:24
3
Solved
I am developing a simple application in Cocoa, and I want to detect whether any application is running in full screen mode. Is this possible?
Through runningApplications API, I can get various in...
Roguish asked 8/4, 2013 at 6:45
2
I have some old code that finds specific folders using the old FSFindFolder routine.
Now I have the task of modernizing this code.
At first using NSFileManager's URLForDirectory seem like the right...
Fieldfare asked 16/10, 2013 at 13:4
1
According to this post:
ShortcutRecorder record CMD+Tab
calling setCanCaptureGlobalHotKeys:YES on the ShortCutRecorder control should allow you to capture CMD+TAB. However, it doesn't seem to wor...
Bodine asked 22/3, 2013 at 14:53
4
Solved
What is the difference between carbon and cocoa ? For what type of applications we should use carbon and for what type of applications we should use cocoa ? Which is the best of both for developing...
Fusil asked 13/12, 2009 at 7:2
2
I'm trying to run an example using EnableGUI function.
% ghci -framework Carbon Main.hs
*Main> enableGUI >> main
This is what I get instead of a working program:
2013-01-14 00:21:03.0...
Inalterable asked 13/1, 2013 at 20:26
1
Solved
I'm porting a Carbon application to Cocoa and am looking for the equivalent of kLogsFolderType in Cocoa, which currently would return /Users/me/Library/Logs
I have seen NSSearchPathForDirectoriesI...
Branum asked 17/3, 2013 at 14:47
2
My new Qt application submission has been rejected from Mac App Store. The reason is:
Binary Rejected May 23, 2012 07:42 PM
Reasons for Rejection:
2.5 Apps that use non-public APIs will be rejecte...
Chou asked 26/5, 2012 at 14:7
1
Solved
I want to create OS X application which shows up and getting focused with system-wide hotkey, and then, with same hotkey it should dissapear and switch focus back. Just like Alfred does it.
The pr...
Chalcis asked 13/11, 2012 at 19:50
3
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 discard...
Patrilineage asked 12/5, 2010 at 9:57
7
Solved
I'm writing a program (for Mac OS X, using Objective-C) and I need to create a bunch of .webloc files programmatically.
The .webloc file is simply file which is created after you drag-n-drop an UR...
Burchell asked 28/9, 2008 at 19:44
© 2022 - 2024 — McMap. All rights reserved.