I have an NSTimer running in my application that collects some data and sends it to a server periodically. In production the timer will fire every few hours.
I am worried about interfering with automatic sleep. In testing, some combinations of timer and sleep time prevent automatic sleep entirely — the display sleeps, the system keeps r...
Hi all,
I'm trying to install mechanize gem on a MAC OS X but I keep getting the following error :
ERROR: Error installing mechanize:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb install mechanize
checking for #include
... yes
checking for #include
... yes
checking for #include
... yes
checki...
I am writing a program in Objective-C and I need to make web requests to web server, but asynchronously and I am fairly new on mac, I am very good at windows technologies, but I need to know that if I use NSOperation (introduced in 10.5, i am assuming that it will not run in 10.4 MAC?), or if it was implemented such that it utilizes syst...
Hey everyone.
I'm planning on writing a socket server in C++ running on a Mac. I've been searching through a great portion of the internet without any results. Anyone knows where to start? Or even got a basic source code?
Much appreciated.
...
How would I go about editing the memory of other applications using Cocoa? I know the editing has to be done as root, but how would I do it in the first place?
...
Hi,
I was debugging a crash in my HID driver code on the Mac and found that the crash happened in the CFRunLoop. In the driver code I open the USB handles for the devices which match the VID and the PID which match my HID device and then set up an Interrupt call back for it using setInterruptReportHandlerCallback function and then add i...
How to dock Firebug in browser window after I opened in a new window? With Firefox 3.0.8 and Firebug 1.3 on Mac OS X 10.5 I can't get it docked in the browser window back. :(
...
Can you please tell me how can I setup cscope with aquamacs on MacOS?
I have followed a link from Google saying how to build a cscope database for my source code. But how can I invoke cscope with aquamacs?
Thank you.
...
I'm banging my head up against Cocoa and Xcode, and have been for months. I never seem to be able to get away from the tutorials, which are often incomplete, or Apple developer documentation, which is sparse on samples. I've watched videos, downloaded source code and asked developers for help. I still feel like I haven't gotten that audi...
I recently installed Bazaar on my Mac laptop and I'm trying to get bzreclipse working. In order to do that, I need to tell it where the bzr executable is. I can't figure out where the installer put it. Anyone know what the default location is for this?
...
I'm writing a Carbon application and we are creating JPEG files. I'm currently doing this by using Quartz CGImageDestinations and kCGImagePropertyJFIFDictionary. However, JFIF doesn't seem to have any entry for compression quality. Does anyone know how to set this?
thanks
...
I am building an application plugin in Python which allows users to arbitrarily extend the application with simple scripts (working under Mac OS X). Executing Python scripts is easy, but some users are more comfortable with languages like Ruby.
From what I've read, I can easily execute Ruby scripts (or other arbitrary shell scripts) us...
Hi,
I am running cscope in Terminal on Macos by using 'cscope -d'.
But the arrow keys (UP/DOWN arrow) do not work, as i need to navigate from 1 query to another.
Can you please tell me how can I fix that?
Thank you.
...
I was trying to hack up a tool to visualize shaders for my game and I figured I would try using python and cocoa. I have ran into a brick wall of sorts though. Maybe its my somewhat poor understand of objective c but I can not seem to get this code for a view I was trying to write working:
from objc import YES, NO, IBAction, IBOutlet
fr...
How do you do nonblocking console IO on Linux/OS X in C?
...
On OS X privileged operations are done through AuthorizationExecuteWithPrivileges() around which Apple published two recommendations:
The old MoreAuth using setuid helper tools.
The current BetterAuthorizationSample littering the system with launchd files.
I don't know any applications using the latter...
...
I am trying to make NSTableDataSource compatible object and give this object to NSTableView as DataSource, however when table tries to display data, it crashes.
@interface NSArrayDataSource : NSObject{
NSArray* internalArray;
}
-(id) initWithArray: (NSArray*) objects;
-(int)numberOfRowsInTableView:(NSTableView *)aTableView;
-(id)ta...
Has anyone spent any time comparing the various Objective C bridges and associated Cocoa wrappers for Mono?
I want to port an existing C# application to run on OS X. Ideally I'd run the application on Mono, and build a native Cocoa UI for it.
I'm wondering which bridge would be the best choice.
In case it's useful to anyone, here ar...
I'm using DarwiinRemote's WiiRemote.framework in my app.
I already fixed some issues by downloading the source code and requiring garbage collection, and building for 10.5. However, when I try to add it to my project, I get the console error:
dyld: Library not loaded: @executable_path/../Frameworks/WiiRemote.framework/Versions/A/WiiRe...
I have writen a small applet in Silverlight and, while it works fine on Windows, it seems that on OSX the data binding part of the application (all those NotifyPropertyChanged calls) do not work. Does anyone know why this is? I've tried under both Firefox and Safari with the latest 2.0 download installed.
...