Hi,
When using visual studio to develop c++ applications, I used to write _asm int 3; and then build the application. When the application is executed, if the code path that has "_asm int 3" is encountered Visual Studio Debugger used to get lauched and I could debug the problems.
Is there any similar approach when developing using Xcod...
How can I read/write to a Virtual Com Port in OSX after the port is created in "/dev"?
...
What are some programs that people use to map out a database schema with several tables and inter-connected keys? Preferably for OS X.
...
I am embarking on some learning and I want to write my own syntax highlighting for files in C++.
Can anyone give me ideas on how to go about doing this?
To me it seems that when a file is opened:
It would need to be parsed and decided what type of source file it is. Trusting the extension might not be fool-proof
A way to know what ...
I remember having a command line tool on an older Mac OS X version (Tiger?) that told me the name of every file that was written to (or read) by any process on the system. It used fseventd (? or something like that). Is there something like that for the newest Mac OS X (10.6)? It should be run in a terminal window and then I can use the ...
From older times (Mac OS 10.4) I had found this command line on the web somewhere:
mdfind '(kMDItemFSContentChangeDate >= $time.now(-60)) && (kMDItemFSContentChangeDate <= $time.now)'
it gave me a list of files that where changed in the last minute. This does not work anymore on Mac OS 10.6. Can anybody explain why this doesn't work? ...
NSResponder has a method you override called - indent:, but unsure when it would normally be activated.
...
Hello I'm creating an os x application for which I try to add a remote interface. For this I need to be able to send mouse down and mouse up commands to the window of my application.
I found code with which I can successfully do this, it looks as follows:
int mask = 0x100;
NSEvent* eventMouseDown = [NSEvent mouseEventWithType:NSLeftMou...
I've got a Django project on my machine and when I try to use South to migrate the data schema, I get several odd errors. Example:
$ python manage.py convert_to_south thisLocator
/Library/Python/2.6/site-packages/registration/models.py:4: DeprecationWarning: the sha >module is deprecated; use the hashlib module instead
import...
Hi,
I'm running through the Ruby on Rails tutorial at http://guides.rubyonrails.org/getting_started.html (adjusting where appropriate for Google's App Engine). All is well up till section 6.3: when I try to click "New Post", I get the following error:
Internal Server Error (500)
Request Method: GET
Request URL: http://localhost:8...
I'm trying to write a script the generates a template file for Pashua (a perl script for creating GUI on osx)
I want to crate an instance for each item in the array, so the ideal output would be:
AB1.type = openbrowser
AB1.label = Choose a master playlist file
AB1.width=310
AB1.tooltip = Blabla filesystem browser
AB2.type = openbrowse...
I'm writing an application to respond on a hotkey by copying highlighted text into NSPasteboard's generalPasteboard. After looking around here for a solution for sending virtual keystrokes, I found this: http://stackoverflow.com/questions/1505933/how-to-send-a-cmd-c-keystroke-to-the-active-application-in-objective-c-or-tell
I tried the ...
Hello,
I need to program an authentication module that has to work with Mac OS X 10.6 Snow Leopard
and at the same time needs to be POSIX-compliant.
I read here: developer.apple.com/leopard/overview/osfoundations.html
that since Mac OS X 10.5 Leopard, Mac OS X is POSIX-compliant (to POSIX 1003.1),
but working under MAC OS X 10.5 Leopa...
How can this be achieved? I have the ff. test code:
javax.swing.JOptionPane.showMessageDialog(null, "Hello, world!");
Running it with, say, -Duser.language=zh and -Duser.country=TW doesn't work. I.e., the OK button is still labeled "OK". In Windows, for example, it is replaced with the Traditional Chinese equivalent.
...
I'm working on an idea for a type of window manager for OSX, similar to Cinch or SizeUp. In order to do this I need to be able to determine the positions of various windows, and which window is active. Some kind of callback when the active window changes would also be useful, as would how to handle multiple screens and multiple spaces....
I am trying to make a popup button that always displays a + as its image and when you click on it, a context menu pops up that will allow you to decide what type of object you want to add. Is there anyway to do this using an NSPopupButton? I saw in the specs for NSPopupButotn that the method SetImage has no effect so it seems that this...
I’m setting up a filter in Mail on OS X that calls an AppleScript whenever an e-mail sent to a specific e-mail address arrives.
Will the AppleScript get passed/have access to any of the e-mail’s properties? I’d like it to take different actions based on the “from” e-mail address.
...
Miguel de Icaza announced a new project today called MonoMac, to develop apps for the Mac using Mono and C#: http://tirania.org/blog/archive/2010/Apr-19.html
In the post, he provides links to the subversion repositories, but are there any builds of it available for download?
...
How do I create a button with an images for normal & highlighted states in interface builder for cocoa application? I need a button like custom button in cocoa-touch and provide a graphics for default and highlighted states. Again, it's for pure mac application not for iPhone.
TIA
...
I'm attempting to execute an uninstaller (written in AppleScript) through AuthorizationExecuteWithPrivileges. I'm setting up my rights after creating an empty auth ref like so:
char *tool = "/usr/bin/osascript";
AuthorizationItem items = {kAuthorizationRightExecute, strlen(tool), tool, 0};
AuthorizationRights rights = {size...