Creating and accessing a sparse image

2009-04-06 Thread Ramakrishna Vavilala
I am investigating the use of sparse bundles and sparse images to distribute some data with my application. I have a few questions: 1. Is there an API to create and mount them? 2. Can disks be mounted privately for a process? I don't want any other process to access that image while my process is

initWIthFrame or awakeFromNib

2009-05-13 Thread Ramakrishna Vavilala
I have a custome view class which I use to host some CALayers. As I specify the view in the Nib file, I use awakeFromNib to create the CALayers. Part of me however thinks that initWithFrame might be more suitable for this initialization as it can be used for views created outside of interface build

QTMovieLayer and movie controls

2009-06-01 Thread Ramakrishna Vavilala
I have layer hosting view which hosts a single layer with several child layers. Some child layers can be QTMovieLayers to display quick time movies. Things work fine. Now my main issue is that I want to add video controls (Play, Pause, time Slider) to control the movie: Is there an already availa

Proper way to release a QTMovie

2009-06-02 Thread Ramakrishna Vavilala
So I have a QTMovieLayer which plays a QTMovie. QTMovie* movie = [QTMovie movieWithFileName:fileName]; QTMovieLayer* movieLayer = [[QTMovieLayer layerWithMovie:movie]; [superlayer addSublayers:movieLayer]; The user may or may not view the entire movie. If the user desires to stop the movie, I do

Crash during printing an offscreen image view

2009-06-09 Thread Ramakrishna Vavilala
I have the following code: NSPrintInfo* printInfo = [NSPrintInfo sharedPrintInfo]; NSSize size = [printInfo paperSize]; size.height -= ([printInfo topMargin] + [printInfo bottomMargin]); size.width -= ([printInfo leftMargin] + [printInfo rightMargin]); NSRect imageViewBounds; imageViewBounds

Manually updating a data bound value of a bound text field

2009-06-18 Thread Ramakrishna Vavilala
I have a window (displayed as a sheet) with a text field and some other controls. I can not set the binding mode to continuous so I use non continuous binding. Everything works fine as long as I press tab and switch to a different control. However when the the text field is the key view and I press

Re: Manually updating a data bound value of a bound text field

2009-06-18 Thread Ramakrishna Vavilala
9:49 AM, Ramakrishna Vavilala wrote: > >> I have a window (displayed as a sheet) with a text field and some >> other controls. I can not set the binding mode to continuous so I use >> non continuous binding. Everything works fine as long as I press tab >> and switch to a different

Re: Manually updating a data bound value of a bound text field

2009-06-18 Thread Ramakrishna Vavilala
is good to know about NSEditorRegistration. Thanks for your help:). On Thu, Jun 18, 2009 at 9:33 AM, Ken Thomases wrote: > On Jun 18, 2009, at 11:17 AM, Ramakrishna Vavilala wrote: > >> Unfortunately, I used incorrect design by binding text field to >> properties of the file'

Re: IKImageBrowserView setSelectionIndex not selecting

2009-06-25 Thread Ramakrishna Vavilala
You need to call [imageBrowser reloadData]. When you call setSelectionIndexes there need to be items in the list calling reloadData will ensure that there are items. On Thu, Jun 25, 2009 at 12:19 PM, Richard Gutierrez wrote: > I did place this in the awakeFromNib... I also tried placing it in > "

Ideas required on testing an application install

2009-06-25 Thread Ramakrishna Vavilala
I just finished converting (rewriting) a windows application to work on Mac OSX. I made a package for my application. Now I want to test it on a clean machine. In Windows I would normally create a clean Virtual Machine and install the application to make sure that everything is working properly on