mac

How to Connect to MS SQL Server in Objective-C/Cocoa on Mac?

I need to write a Mac Objective-C/Cocoa app that connects to a remote MS SQL Server. How to do it? Also, how to run SELECT/UPDATE/INSERT/DELETE in this connection? ...

iphone/mac - how to download files with AsyncSocket

Hi guys, I have a remote server with some files. I want to use AsyncSocket to download a file, chunk by chunk. I would like to send HTTP requests with ranges through the socket and get the appropriate chunks of data. I understand how to do this on localhost, but not from a remote server. I really don't know how to use the connectToHost ...

How to set the program title in python

Hi, I have been building a large python program for a while, and would like to know how I would go about setting the title of the program? On a mac the title of program, which has focus, is shown in the top left corner of the screen, next the the apple menu. Currently this only shows the word "Python", but I would of course like to my p...

key-value coding and to-many relationships

Hi there, I'm a bit confused with key value coding and to-many relationships. I've read that when having such relationship I should use [object mutableArrayValueForKey:@"key"]; to retrieve the mutable array that holds the objects in that ordered relationship. What I don't understand is what's the difference between mutableArrayValueFor...

Prevent selection change in NSOutlineView when NSActionCell clicked

I have a custom NSActionCell used to render some parts of some of the rows in my NSOutlineView. I can receive and respond to clicks on the NSActionCell, but the selection also changes when that cell is clicked. I'd like to prevent the selection from changing if one of my custom NSActionCells are clicked. Is there an easy way to do this?...

Installing Qt on Snow Leopard fails

Hi guys, I am having a hard time trying to get Qt running. I downloaded the 4.6.2 SDK-Installer and it completed successfully. Yet, when I try to compile any of the examples by Terminal and typing "qmake" I get errors like this Failure to read QMAKESPEC conf file /Users/xxx/mkspecs/macx-g++/qmake.conf. Error processing project file: /U...

How to launch application and bring it to front using Cocoa api?

Hello fellows! I'm very new to a cocoa programming and I can't find the way to do the following: Start a particular application by name Do some work Later bring that application I've started to be the front process From what I've found in Carbon API it looks like the calls i should use are launchApplication() and setFrontProcess(). ...

Generate the hardware interupt which will enable the CapsLock

Hello All, I want to Send my machine an hardware event so that my caps-lock key becomes enable. When I send enable interrupt, light on Caps-lock key should be on and when I send enable interrupt, light on Caps-lock key should be off. I am using Qt, Mac, C++, Carbon. Any help is appreciated. Thanks, Rahul ...

How to increse performance of raster scrolling on Mac ?

I have a game with a big raster map Now we are using jpeg (4900x4200) And durring the game we need to scroll through this map. We use the following: Class Map extends mx.containers.Canvas and mx.controls.Image on it In constructor we have: public function Map() { super(); image.source = ResourceManager.interactiveM...

How to get current milliseconds on flex application fast? Especially when SWF runs in browser on Mac or Linux

We have a simple flex game. And I want to keep my FPS constantly. Now I use: (new Date()).getTime(); It's OK in windows and it's OK in flashplayer on Mac and Linux. But in browsers in Mac and Linux this method is too slow. What can I use instead? ...

Creating MAC CSVs in windows for testing

I have a PHP program that uploads a CSV file and reads through it. We only have PC's in the office, but sometimes our clients have Macs. Is there a way to create a Mac CSV in Windows for testing purposes? ...

Changing how IKImageBrowserView indicates the drop position

I can make a single row IKImageBrowserView by setting the [imageBrowser setContentResizingMask:NSViewWidthSizable]; but in this case while i drag an image inside image browser to rearrange it, the drop place highlights with horizontal line(vertical line expected). how can this be changed? Many thanks. ...

Equivalent for Oracle Enterprise Management Console for Mac

Somebody can advise an equivalent for Enterprise Management Console? I found this Oracle Enterprise Manager 10g Grid Control Management Agent. But i cant launch it. There is two jar file. I try to run it, but it doesn't work. dhcp-176:~ kukodajanos$ java -jar /Users/kukodajanos/Downloads/macosx_10_1_0_3_agent_download/macosx/agent/stag...

How to write preinstall script for packagemaker for Mac os

Hi I am using package-maker of Mac OS to create installer package for Mac OS. I gave created a simple installer package it worked fine. But I want to create a new folder under /Applications directory under which myApplication.app file will be installed. So I need to create a pre-install script which will create folder before my applicati...

Qt Asynchronous Action During aboutToQuit

Hi all, I've got some Asynchronous cleanup activity I need to do as my Qt application is shutting down. My current approach is to trap the aboutToQuit signal. I launch my Asynchronous behavior, and then the application shuts down. Is there any way to block Qt from shutting down until my asynchronous behavior is complete? This works on...

Draw an NSView into an NSGraphicsContext?

I have a CGContext, which I can turn into an NSGraphicsContext. I have an NSWindow with a clipRect for the context. I want to put a scrollview into the context and then some other view into the scrollview so I can put an image into it... However, I can't figure out how to attach the scrollview into the context. Eventually the view will...

Problem with fullscreen OpenGL on the Mac

Hi, programmers! Now I am porting some OpenGL tutorials from win/glut to cocoa/mac os x. In the windowed mode everything works, but when context switches to fullscreen, screen may be empty (only clear colour)! For example: in the first, second, third times cube is, but in the fourth time cube is not. Even if app launches in fullscreen w...

EXC_BAD_ACCESS on ReloadData

I'm loading data dynamically from an API using a UISearchBar and trying to display it, using something like this: - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar { [searchBar resignFirstResponder]; NSLog(@"Search Text: %@",[searchBar text]); [self startSearchingWithText:[searchBar text]]; } - (void) startSearch...

Writing GUI frontend for commandline application in Mac OS X

Hello, I am wondering if there is a source of information on how to develop a GUI frontend application for a commandline one in Mac OS X in, but not necessarily, Xcode? Specifically, I would love a GUI frontend that lets me specify arguments to pass to the commandline program. Thank you very much. ...

How to work with a Mac on a OpenSource project? (Tutorial?)

Hi guys! I'm really interested in participating as a new developer in an OpenSource project. My Problem now is - what is the best way to participate with a Mac on an OSS Project? (Without using a Virtual Machine or DualBoot.) As there is no usual apt-get system, what is the best way of working on such an existing project? Would you us...