mac

Capturing trace/debug information from a Silverlight OOB app running on a Mac

I'm having a problem with a trusted Silverlight 4 OOB app when it runs on a Mac. In order to debug I'd really like to be able to capture the debug/trace information output by the app. (The problem is in in code running in a background thread so outputting debug information to the screen isn't practical and risks creating new issues.) I...

TextMate - Find & Replace Selected Text

In TextMate, does anyone know how you find & replace selected text? ...

NSArray to plist on mac

I need to save/load a NSMutableArray of NSDictionarys to a file in the application directory. Apparently this does not work like on the iPhone ([array writeToFile] & arrayWithContensOfFile]). How is this done on a mac. Thank you. (sorry for the stupid question) ...

Authorization and NSMetadataQuery

Hi, I'm trying to use NSMetadataQuery to read in restricted directories and I've encountered some problems: I followed the apple documentation to acquire privileges but the result of the query is empty (while I know it shouldn't). Here's the code I wrote: AuthorizationRef myAuthorizationRef; OSStatus myStatus = AuthorizationCreate(...

How to create a Bundle Library (mh_bundle) with qmake on Mac OS X?

Hi All, I'm a newbee to Qt and qmake and I like to know if it's possible to instruct qmake to build a "Bundle Library" (mh_bundle) under Mac OS X using the TEMPLATE and CONFIG variables? I already managed to make a "Dynamic Library" (mh_dylib) and a "Framework" (mh_dylib). If there is no direct solution, how is the best way to achieve t...

StatusItem menu blocks main thread when it's opened. Workaround?

I've written an app for the Mac that is designed as a status bar item. However, when a user opens its menu from the status bar, the main run loop is blocked until it's closed. Since this app responds to messages on a socket, it's a problem that it can't do anything while the menu is open. I've tried setting the status item from a separa...

Is there a IE tester for mac ?

I friends I want to test my site on different version of IE on mac, is there any software for that ? ...

NSOutlineView with badge of unread messages like Mail.app

I'm trying to create a user interface similar to the iTunes source list or the Mail.app mailbox list where a badge with a number (e.g. unread emails, new podcasts) is shown at the right hand side of an element. Based on Apple's SourceList example, I have an NSOutlineView set up to display a couple of groups and a few items in each group...

Mac OS X python 'import vigra' error

Hi guys, I want to use vigra under Mac OS X 10.6.4. So I installed all dependencies with Macpotrs. Everything compiled and I could install vigra too. But when I try to import vigra, then I get a 'Segmentation fault'. Do someone know how to solve this problem? Here the Mac OS X error report: Process: Python [784] Path: /o...

Precompose Unicode Character Sequences in Python

Hi, How can I convert decomposed unicode character sequences like "LATIN SMALL LETTER E" + "COMBINING ACUTE ACCENT" (or U+0075 + U+0301) so they become the precomposed form: "LATIN SMALL LETTER E WITH ACUTE" (or U+00E9) using native Python 2.5+ functions? If it matters, I am on Mac OS X (10.6.4) and I have seen the question Converting ...

How do I save the Build Results to a non plain-text file?

I'm building from command-line using the xcodebuild utility. The build results is being stdout as plain-text, in a very unreadable format. I would like to save the build results in a (binary?) file, which, if double-clicked, will be opened in the XCode application itself, thus I will be able to read the build results from the application...

Change Git repository download path on Mac

Hi, I often use git from Terminal on Mac to download some repositories and then use it. When I use this command:git clone git://git repository URL repositories are downloaded in my Start folder (name account folder e.g. Matthew, if the name of my Mac account is Matthew). I'd like to change this folder where repositories are downloa...

Open file in editor from browser, on Mac

I'd like to have a link which allows me to open a file in my favorite IDE. Textmate registeres it's own protocol txmt://open/?url=file://%file&line=%line and it works fine, but I can't find out how to open the file in some other application (for example NetBeans). This probably requires registering some protocols and setting my browser ...

Problems understanding authorization

Hi everybody, I'm having problems in understanding how to authorize my program to perform privileged tasks. I read the apple documentation and wrote this piece of code: AuthorizationRef myAuthorizationRef; OSStatus myStatus = AuthorizationCreate(NULL, kAuthorizationEmptyEnvironment, kAuthorizationFlagDefaults, &myAuthorizationRef); Au...

How to make flash video stay in fullscreen on dual monitor setup?

Cant figure this out, got it to work in firefox a while ago but after upgrading to mac and chrome, I had no luck finding an solution. ...

setup include path in eclipse CDT in mac os (headers from framework)

for example I need to include a header #include <OpenGL/glext.h> while it is actually a header file glext.h under OpenGL.framework/Headers/. Therefore it is no way to give eclipse a physical path about "OpenGL/glext.h", and I always get unresolved inclusion warning. I can still build and run them (with managed makefile project) but ...

Debug/Run in Xcode stopped working. Executable settings are wrong and can't be fixed too.

I've just had a strange problem show up with my XCode project. The project is one that I've been working on for 4+ years. Just today, when try to start debugging, the debugging view opens and the console says "[Session started at 2010-10-03 14:04:35 -0600.]" but nothing else happens. It seems that the executable is screwed up. If I o...

Cocoa tutorial suggestions

I am learning Cocoa programming for Mac apps. Where can I find a good video tutorial or class online? ...

Run a python script and a compiled c code without terminal or dock item in Mac OS X

Hi, For great help from stackoverflow, the development for the Mac version of my program is done. Now I need to deploy my program, and I was wondering if there is any way to "hide" my running Python code (it also runs .so library and it seems it makes a dock item to appear). The program is supposed to be running in the background and ...

Toggling the concealed attribute for a syntax highlight in VIM

Hi, I currently have a syntax file that parses a log file, very similar to the following [this is for syslog]: syn match syslogText /.*$/ syn match syslogFacility /.\{-1,}:/ nextgroup=syslogText skipwhite syn match syslogHost /\S\+/ nextgroup=syslogFacility,syslogText skipwhite syn match syslogDate /^.\{-}\d\d:\d\d:\d\d/ ...