osx

Unable to expand Mac's manuals to have Ubuntu's manuals

My Leopard has no manuals for Wget and compinit, for example. It lacks in many other areas such as in examples and documentation about options too. Ubuntu has often better manuals than Mac: for instance, it has manuals for the two commands. A solution to the problem may be to make a port to MacPorts which installs Ubuntu's manuals to M...

How I detect whether or not a file has been renamed using Cocoa?

I'm building a utility application that synchronizes files across two systems for Mac OSX. I need to detect when a file has been renamed but is otherwise the same file. How do I do this in Cocoa? ...

What's the best way to use Obj-C 2.0 Properties with mutable objects, such as NSMutableArray?

I have an Obj-C 2.0 class that has an NSMutableArray property. If I use the following code, then the synthesised setter will give me an immutable copy, not a mutable one: @property (readwrite, copy) NSMutableArray *myArray; Is there any reason that Apple didn't implement the following syntax? @property (readwrite, mutablecopy) NSMuta...

How to render with yafaray on mac osx

I've installed wings 3d on mac osx and I'm loving it. The problem is I can't do any fancy renderings. I've downloaded and installed YafaRay-0.1.0.305-OSXintel10.5 and I can't seem to get it to work. The wings3d manual states that on mac os you export the xml file from wings 3d, but you make the rendering from Terminal, calling yafaray w...

Help with MySQL gem on OSX

I'm trying to get the mysql gem working on OSX 10.5.6, and feeling stymied. % gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config Building native extensions. This could take a while... Successfully installed mysql-2.7 1 gem installed % irb -rubygems -rmysql irb> Mysql.init dyld: lazy symbol binding failed: Symbol...

What's the best way to model _ordered_ lists of items with core data (Mac OS X cocoa)?

What's the best way to model ordered lists of items with core data? ...

Xcode 'invalid conversion' when using objective-c++

So if I run my program with the implementation as .m it works fine. Just changing it to .mm causes this line… CGContextRef myContext = [[NSGraphicsContext currentContext] graphicsPort]; to throw this error… error: invalid conversion from 'void*' to 'CGContext*' Anyone have any ideas why just changing that would make it blow up, or ...

Create AppleDouble formatted file in Linux

Hello, I'm working on an application that syncs data. For Mac OS, files are uploaded and if they contain resource fork information, the fork is read and stored as a string using: file/..namedfork/rsrc Users can access their files using a Web application(Java) that's running on a Linux server, is there a way that I can generate a valid...

Query Mac OS X Spotlight from Java

Related to: Query Windows Search from Java But this time to use OSX's spotlight I would like to consume OSX spotlight service from Java. Is there an API available? Thanks. ...

Replacing CMNewProfileSearch with non-deprecated, 64-bit code

I have existing code that uses CMNewProfileSearch to find then iterate over the color profiles on the system getting their names and full paths. Unfortunately, CMNewProfileSearch is deprecated in Mac OS X 10.5 and is also unavailable when compiling a 64-bit application. In reading the ColorSync Manager 2.5 Reference, it seems like the ...

Programatically get/set Mac OSX default system keyboard shortcut

I'm trying to find a way to programatically get/set the default OSX system keyboard shortcuts (hotkeys) found in the System Preferences -> Keyboard & Mouse -> Keyboard Shortcuts tab. I need to be able to do this in the background, so GUI scripting is not a solution. I'm unable to find a plist or anything where this info might be stored...

iPhone Can't deselect a UITableViewCell

I have a RootViewController class which is inherited from UITableViewController. When a cell is deselected by the user I want to enable/disable certain buttons on the toolbar. How do I trap the deselect event? -(void)tableView:(UITableView *)tableView deselectRowAtIndexPath:(NSIndexPath *)indexPath animated:(BOOL)animated { if(index...

Cocoa control for setting shorcuts

I want to build a preferences window for my Cocoa application. Is there a tutorial or example of how a control that sets shortcuts works? ...

Cocoa control for keywords/tags

I want to build a keyword/tag feature for my Cocoa application. Is there a tutorial or example of how a control that sets keywords/tags works? I want it to look something like the Keywords window in iPhoto that you get from Window->Show Keywords. ...

Mac PGP WDE emergency recovery procedures

This is really more of a serverfault/IT question, but I am not part of the beta. Equipment / Topology: MacBook Pro (Running OSX) 4GB RAM Used for email, web browsing, basicly everything that isn't Visual Studio or a MS app. VMWare Fusion VMs (mostly XP) for various development needs Main VS2008 Development Custom 3rd party software...

What's a good hex editor/viewer for the Mac?

What's a good hex editor/viewer for the Mac? I've used xxd for viewing hexdumps, and I think it can be used in reverse to make edits. But what I really want is a real hex editor. ...

How do I install nano-hmac on Mac OS X?

"nano-hmac" is a Haskell package which can normally be installed using Cabal. However, Mac OS X has a different OpenSSL library than the one it expects, so it fails to compile bindings. I can install the version of openssl from openssl.org, but I'm not sure how to instruct Cabal to use this instead of the Mac OS X version. ...

How can I indent multiple lines in xcode?

When I select multiple lines of code and want to indent them as usual with TAB, it just deletes them all. I come from Eclipse where I always did it that way. How's that done in Xcode? I hope not line by line ;) ...

Persist and rearrange the order of Core Data records

I followed the Core Data tutorial at http://macresearch.org/cocoa-scientists-part-xxiii-itunes-ifying-core-data-app The finished application displays data in an NSTableView. Is the ordering of the data persistent as well? And is there a way that you can allow drag and drop rearrangements to the order of the records? I am thinking ab...

Can't find git-svn on Mac OS X Leopard after installing via MacPorts

Okay people, I'm sure someone has had this issue and can help me out. I'm trying to get git-svn working on OSX Leopard (10.5.6). Using MacPorts I've run the install thus : sudo port install git-core +svn However, git-svn has not been installed and is not available. No errors came up during the lengthy dependency installation and so I'm...