how to monitor the system status?

2008-03-05 Thread Scott.D.R
Hi everyone. As the titled mentioned, How to monitor the system status? Mac OS X provided a very powerful application "Activity Monitor", which can let you inspect the system status such as CPU usage, disk usage, network usage and so on. But how to retrieve these information using APIs? Th

Mac OS X Space API?

2008-03-05 Thread Scott.D.R
Greetings everyone. The space is introduced with Leopard. How amusing an invention, thanks to Apple designers. Hmm, I want to port one of my old applications to Leopard. In order to cooperate with Space function better, I am wondering whether there exists some APIs to query the current space

Post notification among several nib files?

2008-03-08 Thread Scott.D.R
Greetings, everyone. I create a NSWindowController to manage my application preferences. I want the application to respond to the option change when occurred. The problem is: my AppController which handle the change is placed in the MainMenu.Nib, my WindowController load another Nib file named

Odd issue causing IKImageBrowserView to crash?

2008-03-14 Thread Scott.D.R
Greetings everyone. I am writing an application using IKImageBrowserView. I wrote a NSMutableArray object to hold the source images which reaches about 500-700 regularly in number. First, I used some code to generate the images. Then I told the IKImagebrowserView to reload the datasource, my

How to get Spaces configuration?

2008-03-21 Thread Scott.D.R
Hi everyone. I remember somebody has asked this question before. However, it is very difficult to search the original text... First apologize for repeat this question again. I am wondering how to query the current user configuration for the Spaces application in the system preferences? I re

Very strange issue of using IKImageView in a multi-document application

2008-02-28 Thread Scott.D.R
Hi everyone. As the topic described, I came across this issue when using a IKImageView in a multi-document application. At first, I created a sample multi-document application using the xcode starter template "cocoa multi-document application". Without adding a line of code, build the appl

Issue about cocoa Multi-document template

2008-03-02 Thread Scott.D.R
Hi everyone. I want to start an application with the cocoa multi-document template. The default behavior of the application is when you launch it, a blank window is automatically open. This behavior is not that I want. I thought the application should not open any window until users explic

Create a PDFPage instance from Quartz-format image

2008-03-03 Thread Scott.D.R
Hi everyone. As the developer documents mention, we can create a PDFPage from a NSImage. After did some experiments, I found it was very handy to do some tasks. Thanks to Apple. However, I want to know whether it is possible to create the PDFPage instance directly from the CGImage, CIImage