I'm building a toolbar that I want to look at least somewhat like Preview's. I want to create the Previous/Next buttons. The way I THINK it's done is with a segmented control, each has an image in the control. The problem is that I can't figure out how to get the labels underneath. I can get ONE label centered under the whole thing, but ...
I need to decide whether I should support Mac OS X 10.4 / Tiger, and the decision likely hinges on what percentage of mac users are still running Tiger. I didn't find anything too reliable on the interwebs nor on Apple's developer website. Let's ignore the impending Snow Leopard release and it's impact on Mac OS version usage distributio...
I am using text-editor to store xml files.
I know how to read xml files in iPhone application. But the problem which do i get is explained below.
When I store xml files through text-editors, it looks perfect.
But when iPhone - xCode debugs, xml file data is shown as below.
What kind of mistake have I Done?
{\rtf1\ansi\ansicpg1252\c...
Based on this it looks like it's hard to get OS version detection absolutely correct. However, I'm looking for something half-decent which warns users of OS X Tiger and below about possible compat issues with my product.
The heuristic I can think of is first detecting whether the OS is a Mac (relatively simple) and then matching the use...
I'm looking for an exhaustive, university-level book or guide to study in order to
gain the ability of writing Mac OS X device drivers. I'm totally ignorant on this OS, but I'm already skilled on Linux.
Is there any Mac OS X counterpart for book "Linux Device Drivers"?
The best guide should introduce OS internals too, makes clear kern...
I am trying to build a library (luabind) with bjam. I came across an error and it seems like the problem is that I need to compile with gcc 4.2, but the default on this computer (Mac OSX) is 4.0. I would prefer not to go around changing links in system directories, is there a way to specify to bjam to use gcc4.2 rather than just gcc?
...
Hey there,
I just found this very usefull shell script here on SO but unfortunately it's not working on Mac OS X 10.5.
This is the script in question(copied it for convenience):
#!/bin/bash
LIMIT=$1
P=$PWD
for ((i=1; i <= LIMIT; i++))
do
P=$P/..
done
cd $P
I tried to echo $P at the very end and it's returning the right path, but...
I have recursed a folder on a single volume, and retrieved a list of filenames, reference-counts and inode numbers, using
NSFileManager attributesOfItemAtPath
and NSDictionary fileSystemFileNumber and objectForKey:NSFileReferenceCount
For some reason I am getting results such as a reference count of 10, but a list of many more than 10...
What command or series of commands could I execute from the CLI to recursively traverse a directory tree and reduce the bit-depth of all PNG files within that tree from 24bpp to 16bpp? Commands should preserve the alpha layer and should not increase the file size of the PNGs - in fact a decrease would be preferable.
I have an OSX based...
I am writing a Java program that wants to do 3 things, and I don't know how to do them or if it's even possible with Java.
1 - I want to ensure that the computer whether running mac OS or windows xp/vista, doesn't go to sleep whilst running my app.
2 - I want my app to be able to turn the volume to full on all of the above OS's before ...
Alright. While there are a few blog posts here and there purporting to make this process easy, this is absolutely driving me crazy.
Here's what I've done:
I've installed FreeTDS (with and without +mssql) but encounter problems when I use it to connect to my remote DB instance. When I attempt
tsql -H [remote-db-ip] -p 1433 -U [valid-...
How do you navigate the directory structure in a save as dialog on Mac OS X (Finder). Can Apple really have botched the simple funcitonality?
...
I'm using this dtrace script from here to try to find when context switches occur for the threads of a java program.
I'm trying to match the data gathered from the script with trace data gathered from the running program (things like method entry/exit). I get the pthread id of the running thread using a short JNI method that simply ret...
Hi,
I have code
in view
<% uberform_for :profile, :html => { :multipart => true, :method => :put }, :url => update_avatar_path do |f| %>
<%= f.file_field :avatar %>
<p><%= f.submit 'Upload avatar' %></p>
<% end %>
in controller
def update_avatar
current_user.profile.update_attribute(:avatar, params[:avatar])
redirect_...
Hello everyone. I'm using Qt4Dotnet project in order to port application originally written in C# on Linux and Mac. Port to Linux hasn't taken much efforts and works fine. But Mac (10.4 Tiger) is a bit more stubborn.
The problem is: when I try to start my application it throws an exception. Exception states that com.trolltech.qt.QtJamb...
I'm writing a Cocoa application that installs itself as an menulet in the menu bar (i.e. like the volume or battery icons). When the program crashes, it isn't possible to use the Force-Quit dialog, because it doesn't show up in the list. Of course, I can still kill it using the command-line, but my users don't know how to do that. Is ...
I've created an app using py2app, which works fine, but if I zip/unzip it, the newly unzipped version can't access standard python modules like traceback, or os. The manpage for zip claims that it preserves resource forks, and I've seen other applications packaged this way (I need to be able to put this in a .zip file). How do I fix this...
I am looking to optimize my disk IO, and am looking around to try to find out what the disk cache size is. system_profiler is not telling me, where else can I look?
edit: my program is processing entire volumes: I'm doing a secure-wipe, so I loop through all of the blocks on the volume, reading, randomizing the data, writing... if I re...
I want my application to run as soon as user login.
For this I need the modify the /Library/Preferences/loginwindow.plist.
Manually I can do this using Plist Editor but I want to do this in my code.
How can I do this Programatically using C/C++
...
Environment: Apache 2 shipped with Mac OS X Leopard; with no big changes in the default httpd.conf.
I am setting up some rewrites through my .htaccess but I am not able to use target paths relative to the current directory.
# URL: http://localhost/~davis/rewrite/.htaccess
# File: /Users/davis/Sites/rewrite/.htaccess
RewriteRule go.php...