Apple's Threading Programming Guide states that:
Although good for occasional
communication between threads, you
should not use the
performSelector:onThread:withObject:waitUntilDone:
method for time critical or frequent
communication between threads.
Which begs the questions: Which is, then, the acceptable method for freq...
What I want to do: layout text using NSLayoutManager and set its NSTextContainer to the width of the widest string (glyph-wise) in an array of strings.
What my problem is: The methods for determining the total 'glyph-width' seem to be incorrect because when I render the text it wraps.
I did an experiment using a 32 character string wit...
Hi all,
(Mac OS X, iOS apps)
Q. What does glDeleteTextures actually do, on the above platforms?
(The official documentation is... sparse, at best.)
In terms of mem management, do the textures actually get removed from the video card? (Or at least their space set to reusable?)
Cheers.
...
Hi. Whats the best way to write to MS Access (.mdb) databases on Mac OS? I have a project that I'd like to port (quickly) to Mac OS and I'm thinking about using something cross-platform such as Mono.
Can anybody recommend a good place to start? Do I really have to scrap my .mdb files and export into something else?
I quite like the .m...
Hi everyone,
What's the way to get default volume on Mac 64-bit?
I have a code like that:
GetVolParmsInfoBuffer buf_64 = { 0 };
status = FSGetVolumeParms(vol_ref, // use default volume
The problem is that I can't pass 0 in vol_ref. On Mac 32-bit I could write:
GetVolParmsInfoBuffer buf_...
What is the best way to render capsule-style toolbar controls (including the label text below the buttons) in a Qt application?
As far as rendering the buttons, I want to tap into what is provided by Mac OS as much as possible. (I'm not a Mac developer, so do not know if it has an API for this.) That is, I know I can draw them myself, u...
I have never used any version control software before (yes, I know... ;-) and would like to change my evil ways using git. What book would you recommend for the total svn newbie?
I will be using a MBP for django and iOS development and a VMWare XP guest for legacy win32 stuff.
I'm looking not only for information on the usage of git, b...
Anyone know how to test if a string is a valid file name in Mac OS X, other than trying to create file with that name?
The issue I'm having is that sometimes, a file name can be too large. OSX has a byte limit for filenames and with unicode characters you can't just check the length of the string since they can be more than 1 byte.
...
I've been wondering why python gets installed in directory named Frameworks? (though it's not Framework)
$ which python
/Library/Frameworks/Python.framework/Versions/2.7/bin/python
Somebody please explain! Thanks!
...
I'm currently building my first Mac application and I'm a little confused by the delivery process. I've quickly read through the Software Delivery Guide but it seems to imply that if I have several components in my app, I should use a managed install. My application is very simple but it does rely on VVOpenSource frameworks, so when I bu...
My Java Swing application has an animated playback of a poker hand. I'd like to let users record this playback so that it can be sent to other people and played back in, for example, QuickTime.
Any ideas how to go about recording a Swing JFrame over time?
...
I have a shell script that I would like to run at the end of my target's build phase. However, I would like this script to only run when I build with the release configuration. How can this be done? Thanks!
...
I have a python script bundled into a application (I'm on a mac) and have the application set to be able to open .zip files. But when I say "open foo.zip with bar.py" how do I access the file that I have passed to it?
Additional info:
Using tkinter.
What's a good way to debug this, as there is no terminal to pass info to?
...
I just installed Python 2.7, but IDLE is currently broken on OS X 10.6.4. Is there anyway I can revert to the earlier, Apple installed, version? A simple PATH adjustment, perhaps?
Right now $PATH looks like this for me:
/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin...
Why is there so many Pythons installed in /usr/bin for my Snow Leopard? What decides which one is the System Python?
When I simply type "python" it is 2.6.1 ~ but this doesn't seem to be the "System Python", why not? How does one change system Python and what are the drawbacks?
...
I recently had some HD issues and had to get a new one. I transferred over my data using Migration Assistant on my freshly imaged disk. Then with but a minute left until I was in the clear, there is a town wide power outage. I was at work and had no backup generator and the university's didn't source the outlets, so my transfer was stopp...
Hello,
I fail to install the 'iconv' gem, because of weird build errors.
I have build the 'libiconv' from source and linked the .h and .dylib into the rvm's include and lib directory.
When I run
gem install iconv
Gem outputs strange build errors:
Building native extensions. This could take a while...
ERROR: Error installing iconv:...
I want to know/determine at what path the current project is stored at for an XCode project. (MAC app).
Regards
...
I have a Perl script that runs a different utility (called Radmind, for those interested) that has the capability to edit the filesystem. The Perl script monitors output from this process, so it would be running throughout this whole situation.
What would happen if the utility being run by the script tried to edit the script file itself...
Is it possible to use an Apple Script or a Unix executable to associate a file type with an app?
My problem is I'm using File Vault and it forgets previous associations (it's a well known bug so it seems). For instance, I like to use Flying Meat's Acorn for my graphics files rather than Preview. I can Cmd-I, change all, and while it sti...