osx

How do I stop Python install on Mac OS X from putting things in my home directory?

Hi, I'm trying to install Python from source on my Mac. (OS X 10.6.2, Python-2.6.5.tar.bz2) I've done this before and it was easy, but for some reason, this time after ./configure, and make, the sudo make install puts things some things in my home directory instead of in /usr/local/... where I expect. The .py files are okay, but not ...

What is the correct connection string for clsql when accessing ms sqlserver using odbc?

I am accessing a database on another machine from an OS X server. After setting up freetds through macports and creating the freetds.conf file like so: dump file = /tmp/freetds.log # nunb our Microsoft server [winnt] host = 192.168.0.2 port = 1433 tds version = 8.0 I have the following test commands that work:...

Apply a Quartz filter while saving PDF under Mac OS X 10.6.3

Using Mac OS X API, I'm trying to save a PDF file with a Quartz filter applied, just like it is possible from the "Save As" dialog in the Preview application. So far I've written the following code (using Python and pyObjC, but it isn't important for me): -- filter-pdf.py: begin from Foundation import * from Quartz import * import objc...

Do i have to buy mac for iphone application development?

Is there any MacOS virtual machine that can run on PC? Is there any source to get it? What is the best way to develop apps for iphone? ...

What is does this error mean when trying to import video in processing?

quicktime.qdQDException[QTJava:7.6.6g], -3954=Unknown Error Code, QT.vers:7668000 I'm using osx.... is video processing inherently slow in processing? It's really choppy. Would it be faster if done in Max? ...

How to- NSAttributedString to CGImageRef

Hello! I'm writing a QuickLook plugin. Well, everything works. Just want to try it make better ;). Thus the question. Here is a function that returns thumbnail image and that I'm using now. QLThumbnailRequestSetImageWithData( QLThumbnailRequestRef thumbnail, CFDataRef data, CFDictionaryRef properties); ); http://developer.apple.com/m...

Populating an NSBrowser (Cocoa OSX)

I want to make a widget that displays a column of selectable text data. It seems that the NSBrowser is the best cocoa object to do this but I cannot figure out how to populate the NSBrowser with any sort of data. I assume I can set the string value of an NsBrowserCell but no where in the documentation can I find where to add a new cell...

Scrollbars for Infinite Document?

Is there a standard Aqua way to handle a practically infinite document? For example, imagine a level editor for a tile-based game. The level has no preset size (though it's technically limited by NSInteger's size); tiles can be placed anywhere on the grid. Is there a standard interface for scrolling through such a document? I can't sim...

Simulating mouse input programmatically in OS X

Is it possible to simulate the actions of a mouse from a program in OS X? Specifically, the short version is that I'm trying to simulate a touchscreen using two webcams. So assuming I can get X,Y positions, can I send information to the OS as a mouse movement or click? Edit- Or if it's particularly easy in another operating system I'd b...

NSScrollView frame and flipped documentView

Hi, I have problems with NSScrollView, It is not displayed the way I want. Yes I know there is a lot of post about it around the web, I need to override the isFlipped, in order to make it return YES, in my NSView subclass. Ok, it's done, so now, my scrollView scroll from top to bottom, and not in the reverse way, as it was before overr...

Default font in Eclipse on OSX is terrible (and blurred)

Removing -Dorg.eclipse.swt.internal.carbon.smallFonts from eclipse.ini and changing the font to menlo seems to improve the situation a bit. However the font is still a bit unsharp, compared to Xcode. I don't see why they ship it like that or do they just don't care about the mac version? ...

how to create a black rounded-corners window in cocoa

Hi, How to create a rounded corners black window in cocoa? Is it standard and can be created by IB? Can somebody provide an example? Thanks in advance ...

On OSX, how do I gradient fill a path stroke?

Using the plethora of drawing functions in Cocoa or Quartz it's rather easy to draw paths, and fill them using a gradient. I can't seem to find an acceptable way however, to 'stroke'-draw a path with a line width of a few pixels and fill this stroke using a gradient. How is this done? Edit: Apparently the question wasn't clear enough. T...

npruntime example plugin (c++) of NPAPI fails to run on mac OSX 10.5

Hi I have compiled Mozilla NPAPI plugin example npruntime on Mac OSX 10.5. It give me a libnprt.dylib I am bundling this dylib with proper plist. On loading the plugin, NP_GetMIMEDescription() is getting called (i am logging this), but its not going inside NP_GetEntryPoints(). How a part of code is getting loaded and a part not? Can...

Location of global libraries for Python on Mac ?

Hi, I'm fighting with installation SIP for Python on Mac OS X. Finally after compilation and installation when I run console form folder of SIP (locally) I can import sipconfig, but when I`m in other folder I cant - there is no module called sipconfig. My question is - Where is folder to which I have to copy modules if I want to have th...

Subversion import error 200030 (accessed from SCM in Xcode 3.2.2, OS X 10.6.3)

Hi, I'm encountering the following error when attempting to (svn) import from within Xcode). Import Failed Error: 200030 (SQLite error) Description: no such table: rep_cache This is a new repository.The svnserve process runs normally. Existing repositories work fine (import, commit, and export) from within Xcode. Neither MacPorts nor...

Why use a Package Installer with your Macintosh App?

Why is it that some Mac Apps are perfectly happy to be simply copied into the /Applications folder, and others require installation-wizard software? Are there advantages to the wizards? ...

Mirroring a portion of the screen to an external display (in OSX)

I would like to write a program that can mirror a portion of the main display into a new window. Ideally this new window could then be displayed on an external monitor. I have seen this uiltity for a flightsim that does this on a pc (a multifunction display extractor). CLick here for a screenshot of the program (MFD Extractor) This w...

Problems With SWT on Mac

I've got a java project that uses an SWT UI and I'm having trouble deploying it on any Mac OS X computers. The program itself works perfectly on Windows when it is either run from within Eclipse or from a jar file. On Mac, the program also works fine in Eclipse, but when I try to run it from a jar file, I get the following error: 2010...

Cocoa accessibility API, can I click a window in the background without activating it?

I've been searching forever for a solution to this, so I thought I'd seek out the brainpower of greater minds than mine. I'm developing a Cocoa app that uses the Accessibility API to manipulate another program (it's a hotkey app). The app I'm controlling typically has multiple windows open, with some hidden behind others. What I would...