Assuming the latest XCode and GCC, what is the proper way to override the memory allocation functions (I guess operator new/delete as well). The debugging memory allocators are too slow for a game, I just need some basic stats I can do myself with minimal impact.
I know its easy in Linux due to the hooks, and this was trivial under code...
I am trying to configure git.el. When i do git-status i can see the status buffer with changed i can also add files using 'a' but when i try to commit a file using c
writing the commit log and finishing it with C-c C-c gives me
env: git: No such file or directory
error and file is not committed. I am using emacs 23 on OS X. The only ...
I have a project and I am trying to run nosetests with coverage. I am running in a virtualenv.
When I run
$ python setup.py nosetests
The tests run fine but coverage is not showing that any code is executed (coverage
is all 0%).
Name Stmts Exec Cover Missing
--------------------------------------...
How would one enumerate the installed browsers on an OS X system from a local app. I would like to build something like choosy, but different (long story). However, I would like to enumerate all installed browsers on the system.
On windows, I can dive the installed browsers in the Default Programs registries, however, I don't believe th...
iPhone Apps built for the simulator are stored here:
/Users/<username>/Library/Application Support/iPhone Simulator/User/Applications
Is it possible to copy the <GUID>.sb and <GUID> directory and install them on a different computer (with Development tools installed)?
This would be very useful for testing/demoing with out having to b...
Mac OS X development is a fairly new animal for me, and I'm in the process of porting over some software. For software licensing and registration I need to be able to generate some kind of hardware ID. It doesn't have to be anything fancy; Ethernet MAC address, hard drive serial, CPU serial, something like that.
I've got it covered on W...
Hi,
I am new to MacOS development. I would like to know how developer navigate code in a large code base on MacOS? E.g. webkit? I have webkit (c++) built in XCode, but the source code navigate is not that great.
I am looking for something like Java source code navigation in eclipse. e.g. display class hierarchy, e.g. caller of a parti...
Hi,
I install an app .app file to /Applications folder.
Can you please tell me where does the user specified data being stored? How can I do to clean uninstall my application and its user specific data?
Thank you.
...
OS X's Keychain has a Password Assistant feature that suggest passwords based on user criteria (e.g. Length = 18 and FIPS-181 compliant).
I want to access this feature via bash. My specific interest is requesting generation of a password with my desired length and complexity attributes, then adding that password item to a specific keyc...
I have an application bundle on Mac OS X 10.4 on the desktop. My application looks for a folder named "resources" in which files to be displayed are kept (kept in the same location as the runnable JAR). I know there is a folder named "Resources" within the app bundle too, sorry if thats confusing, but I never programmed on a Mac and didn...
I am trying to use Lua on the iphone.
On Mac OSX, in a normal Cocoa application (not iPhone), I used the following code:
lua_State* l;
l = lua_open();
luaL_openlibs(l);
luaL_loadstring(l, "print(\"hi from LUA\");");
lua_pcall(l, 0, 0, 0);
I downloaded Lua 5.1.4 from lua.org/ftp and I compiled it for Mac OSX.
In the Xcode project, I h...
JFileChooser looks nothing like the native widget. I seem to remember reading some hack to get it look like the native widget but searching for it know i can't seem to find it again i came across posts that suggest using java.awt.FileChooser but that class does not seem to be in the distribution. How can i make JFileChooser make look lik...
I upgraded mysql on my Mac from 5.0.x to 5.1.x (using a dmg package directly from mysql.com), which broke Rails (2.3.2). Previously everything was working correctly. The error I get is this:
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install the mysql gem and try again: gem install mysql.
So I tried re-inst...
I am developing an application which has an image and some buttons whose position remain unchanged during the entire flow. So I subclassed the NSViewController. This is the main view of my application with the fixed buttons and image. I add an NSBox item into which various subviews will be displayed and swapped in/out. How do I display t...
Hi,
I have a XCode project. I can build and debug with it.
Is it possible for me to use Shark to do profiling of my application (e.g. find out what % of the time spent on what method? How many objects are created and destroyed? Where does each object created?
Thank you.
...
I have an NSPopUpButtonCell inside a custom NSCell and I'm using
- (BOOL)startTrackingAt:(NSPoint)startPoint inView:(NSView *)controlView
to produce the pop up menu when it's clicked.
I have also overridden copyWithZone: in my custom cell to copy the popUpCell instance variable so that each row in my table view has its own pop up ce...
I have an NSPopUpButtonCell inside a custom NSCell which is being used in an NSTableView.
I'm using
- (BOOL)startTrackingAt:(NSPoint)startPoint inView:(NSView *)controlView
to pop up the pop up menu when it is required.
The problem is that after an item is selected from the menu the table view seems to lose focus, such that it must...
How do I deselect/unselect any selected cells in an NSBrowser?
...
Hi,
I have .h (e.g. A.h) file open in XCode, is there a quick way to open the corresponding .cc/.cpp (e.g. A.cpp) file?
...
os.path.getmtime() and os.stat() seem to return values in whole seconds only.
Is this the greatest resolution possible on either a Windows or OSX file system, or is there a way of getting greater resolution on file times?
...