I have recursed a folder on a single volume, and retrieved a list of filenames, reference-counts and inode numbers, using
NSFileManager attributesOfItemAtPath
and NSDictionary fileSystemFileNumber and objectForKey:NSFileReferenceCount
For some reason I am getting results such as a reference count of 10, but a list of many more than 10...
I have a vertical NSSplitView containing on one of its sides a NSScrollView with a IKImageBrowserView inside. The IKImageBrowserView shows only one row of thumbnails and only has horizontal scroller (the resizing mask is equal to NSViewWidthSizable).
I would like to bind the zoom level of the IKImageBrowserView to the height of any of ...
How do you navigate the directory structure in a save as dialog on Mac OS X (Finder). Can Apple really have botched the simple funcitonality?
...
After trying to install ruby19 on my machine (PPC, Mac OSX 10.5.7) using the following commandline
sudo port install ruby19
the version of ruby didn't change
ruby -v => ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]
I assume that i have two versions of it installed on my mac, but how do i use the latest one now?
...
I've googled this and could'nt find anything new and useful for Apple's new OS SnowLeopard.
I wonder if this is my mistake or I do need to do something?
this is what I did:
Downloaded from mysql site:
http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg
I choose : Mac OS X 10.5 (x86_64)
I run all the packages and installed all of ...
We have a cross platform applicaton. The application has a feature to autostart it once the user logs in. How to do this in mac? from within the application. Manually adding it Login Items works but I am looking for how to do it using an API or something similar.
...
There is difference between quartz2d on iphone and mac? where can i find a list of that? Every book i founded in amazon is dedicate to programming quartz on mac.
...
I have an AIR application running on a Mac and I want to have the behavior of hiding the window when someone "closes" the app (e.g. hits the red "x" button or cmd-w). However, if someone hits cmd-q or chooses "Quit" from the dock context menu or top level menu, I want the app to actually close.
I can preventDefault on the "closing" eve...
I'm getting conflicting reports from various places. Engadget's review says InputManager plug-ins being completely ignored (and causing strange behaviour if the application is loaded in 32-bit mode), but this mailing list thread says they will work if the 32/64-bit compatibility is right.
So I have two questions:
Do we get to use Inpu...
In XCode I made a new run script build phase and want to do one of two things:
edit it
delete it
I can see how to add a new one, but not how to access the existing one?
Any help appreciated, thanks :)
...
I've created an app using py2app, which works fine, but if I zip/unzip it, the newly unzipped version can't access standard python modules like traceback, or os. The manpage for zip claims that it preserves resource forks, and I've seen other applications packaged this way (I need to be able to put this in a .zip file). How do I fix this...
I want my application to run as soon as user login.
For this I need the modify the /Library/Preferences/loginwindow.plist.
Manually I can do this using Plist Editor but I want to do this in my code.
How can I do this Programatically using C/C++
...
I would appreciate it if somebody running the final version of Snow Leopard could post what version of Python is included with the OS (on a Terminal, just type "python --version")
Thanks!
...
I have a spread sheet that I send out to various locations to have information on it updated and then sent back to me. However, I had to put validation and lock the cells to force users to input accurate information. Then I can to use VBA to disable the work around of cut copy and paste functions. And additionally I inserted a VBA fun...
I've installed the "ntfs-3g" package on my computer using darwin-port.
But Mac OS X still automatically mount my NTFS volume with the default NTFS driver.
Now I must first umount the automatically mounted NTFS volume, and then remount it by typing "ntfs-3g /dev/diskxxx/ /mydisk -o force" in terminal. I wanna know how to automatically mou...
Is there a programmatic way to find out what architecture another process is running as on Mac OS X 10.5 and later?
Examining the process's image file is not a solution, as the image is likely to contain multiple architectures, and between arch(1) and the “Open in Rosetta” and “Open in 32-bit mode” checkboxes, there's no way to tell fro...
I just upgraded to snow leopard. Before, I had everything running fine, but now when I start the server from the terminal I get:
=> Booting WEBrick
=> Rails 2.3.3 application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2009-08-28 23:18:19] INFO WEBrick 1.3.1
[2009-08-28 23:18:19] INFO ruby 1...
Could you introduce me a development environment of your recommended C# in Mac.
...
i setup alwaysOnTop="true" in mx:WindowedApplication alwaysOnTop="true" tag.
but this does not work in MAC but works in windows.
How can i solve this for MAC?
...
I am moving my Eclipse development to the Mac and as far as development goes, I am completely new to the Mac. I use Eclipse to write code for Android, BlackBerry, straight Java, etc...
On the PC, I would install an instance of Eclipse into a separate folder for each platform that I was developing for. This is so that the plugins for ea...