PDFView query

2008-05-12 Thread Amrit Majumdar
Hi All, I am working with a PDFView. We have the option to display the document as single page continuous and two pages continuous. Is there a way wherein we can display more than two pages continuous such as a three page continuous or more. I need to display all the pages of the pdf document

images in NSTableView

2008-05-12 Thread Yann Disser
I need to display images in one column of a NSTable view. Right now, the column contains values like green, red, red green, blue etc. I want to replace those strings with images of the corresponding color(s) - in the case of red green by two images, a red and a green one. I do not really

Re: Flash'In'App – Free Cocoa Framework

2008-05-12 Thread Julia Rixon
Ferhat Ayaz wrote: Why don't load flash via WebKit ? Ferhat You can use WebKit for some purposes, but sometimes it doesn’t allow to implement all necessary features. For example there is no option to disable Flash Local Security. Many features are hard to implement using WebKit. --

Re: Flash'In'App ? Free Cocoa Framework

2008-05-12 Thread Julia Rixon
Gordon Apple wrote: Some of us want to incorporate Flash directly in our applications without WebKit. I've been in discussions with Eltima for awhile on this. The framework is free for personal use, but $399 (IMHO, not a bad price) for a commercial license. Unfortunately, you have to buy

Re: images in NSTableView

2008-05-12 Thread Graham Cox
While it's probably slightly more work, you'd be better off writing a custom NSCell subclass than trying to turn colours into images and displaying them in a NSImageCell, IMO. Here's part of one I did recently for colours - it's maybe more than you need and it also takes an NSColor object

Re: images in NSTableView

2008-05-12 Thread Graham Cox
On 12 May 2008, at 8:58 pm, Graham Cox wrote: it's maybe more than you need and it also takes an NSColor object value Oops, that came out not the way I intended it - I meant that you'll need to do more than this code does for your case - i.e. displaying two (or more?) colours in a

ImageLoaderMachO::resolveUndefined

2008-05-12 Thread Michael Vannorsdel
I'm getting this crash when running on PPC Tiger only. Leopard and all Intel work fine: Thread 0 Crashed: 0 com.apple.CoreFoundation0x92009780 CFDictionaryAddValue + 76 1 dyld 0x8fe13ed4 ImageLoaderMachO::resolveUndefined(ImageLoader::LinkContext

Anybody using Pantomime or mail-core framework?

2008-05-12 Thread vinitha
I'm used pantomime framework to send mail without using any email client.But the connection is established,after that serviceInitialized method doesn't run.I given correct server,name and password.Anybody can help me? When the try to use Mailcore framework,the connectToServer function throwing

Core data model, bindings advice.

2008-05-12 Thread Steven Hamilton
Hi folks, Continuing my learning into Cocoa I'm developing a personal finance application. An admirable project I believe since none available suit my purposes and it always pays to have a project that one would use to learn from. I have a simple core data model consisting of

how to create .qtz file from custom cocoa app

2008-05-12 Thread Shashi Kumar
Hi All, I am a newb. I am looking for an cocoa app through which I can create .qtz file. The cocoa app will be having UI in which i 'll implement some effects on image. Now, lets say I 've a button export. When I 'll click export button, it should get saved as .qtz file. And I should

crash when resizing window

2008-05-12 Thread Mitchell Livingston
Hello, I have code where i manually reorder an outline view, and when it is reordered it automatically resizes to fit all the items. A crash consistently happens when I move a subitem from one group to another (in other words, when I drag a row so that it is originally in one expandable

Re: Core data model, bindings advice.

2008-05-12 Thread Steven Huey
Steven, In my app I have a similar setup, although without the detail view. I have the Table Column of my NSOutlineView bound to a NSTreeController using the Controller Key arrangedObjects and the Model Key Path set to the name of a method in the custom NSManagedObject subclass that my

Re: Flash'In'App – Free Cocoa Framework

2008-05-12 Thread John Stiles
There are a couple of gotchas... trying to disable the right-click menu is one issue (maybe you can subclass the view for this, I haven't tried), and having the Flash app send messages back to the main app is another problem. Julia Rixon wrote: Ferhat Ayaz wrote: Why don't load flash via

Re: NSNumberFormatter Changes Reflected In NSTextField

2008-05-12 Thread Simon Wolf
On 9 May 2008, at 16:59, Simon Wolf wrote: I have an NSTextField with an associated NSNumberFormatter which I am using to format the values shown to a specific number of decimal places. I have a second NSTextField which I am using to display and edit the number of decimal places that I

Re: crash when resizing window

2008-05-12 Thread Mike Abdullah
Looks to me like you're releasing (and then deallocating) an object in the outline view without first informing the view that it's gone. It is very important to remember that outline views do NOT retain their items; that is the responsibility of your data source. Running with

Re: Yann Disser Resizing NSTableView columns

2008-05-12 Thread Corbin Dunn
An easier algorithm to do this on Leopard: - (CGFloat)mySizeToFitWidthOfColumn:(NSInteger)column row: (NSInteger)row { NSCell *cell = [self preparedCellAtColumn:column row:row]; return [cell cellSize].width + 1; } .. // for each table column: for (NSInteger i = 0; i [self

Re: crash when resizing window

2008-05-12 Thread Corbin Dunn
And/or read this: http://www.corbinstreehouse.com/blog/index.php/2007/10/instruments-on-leopard-how-to-debug-those-random-crashes-in-your-cocoa-app/ corbin On May 12, 2008, at 9:20 AM, Mike Abdullah wrote: Looks to me like you're releasing (and then deallocating) an object in the outline

CoreData and conflictList error during save

2008-05-12 Thread Dex Morgan
Hello, I'm using core-data in a program of mine. It uses two context where one of these is used in a second thread to perform saving operation. Sometimes at the end of all operations when I perform a save operation on my main context I receive a conflictList error. Is there any way to avoid

Undefined lookup, ObjC, and 64-bit

2008-05-12 Thread Nick Zitzmann
I asked this on the xcode-users list recently, but either nobody knew the answer, or someone did and didn't want to tell me, so maybe I'll have better luck asking on a related list: I've got an application that loads some bundles. The bundles each contain an ObjC class that subclasses an

Re: Cocoa string to carbon compatible C string

2008-05-12 Thread Scott Ribe
There's also the issue of the lifetime of the string. Will initSomeSystem hang on to the char * after the call returns? If so, your code will blow up since when the NSString goes it will take with it that C string--instead you'd have use one of the calls that *copies* the C string into a buffer

Re: Undefined lookup, ObjC, and 64-bit

2008-05-12 Thread Ken Thomases
On May 12, 2008, at 12:39 PM, Nick Zitzmann wrote: 2. How do I fix this without building the abstract superclass into each bundle (which is wasteful)? This isn't my area of expertise, but isn't this the purpose of the - bundle_loader linker option? -Ken

Re: how to create .qtz file from custom cocoa app

2008-05-12 Thread Steve Christensen
On May 12, 2008, at 6:30 AM, Shashi Kumar wrote: I am looking for an cocoa app through which I can create .qtz file. The cocoa app will be having UI in which i 'll implement some effects on image. Now, lets say I 've a button export. When I 'll click export button, it should get saved as

Shipping common app frameworks.

2008-05-12 Thread David Springer
Folks, We need to ship some frameworks that are common to a few of our apps. The question, of course, is where to put these, and how to bundle them with apps so downloads, etc. are not huge and bloated. I'd like to hear other's experience with this. Do you put common frameworks in a place such

[Meeting] Chicago CocoaHeads / CAWUG - More WO development with Eclipse

2008-05-12 Thread Bob Frank
Hi All, The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group (CAWUG) is holding our next meeting Tuesday, May 13th, at 7:00 PM at the Apple Store on Michigan Ave. Agenda: - Introductions Announcements - Bob on WO development with Eclipse -

NSTask waitForDataInBackgroundAndNotify and waitUntilExit

2008-05-12 Thread Torsten Curdt
I am trying to make use of waitForDataInBackgroundAndNotify when executing a script. I've setup the task like this NSTask *task = [[NSTask alloc] init]; [task setLaunchPath:path]; [task setArguments:args]; NSPipe *outPipe = [NSPipe pipe]; [task

Re: NSTask waitForDataInBackgroundAndNotify and waitUntilExit

2008-05-12 Thread Shawn Erickson
Your placement of waitUntilExit is blocking the runloop which needs to be running to service the background notifications you requested. If you want async behavior then you cannot wait on the task (at least not in the way you are currently attempting). Review the following code example...

What's with ICAImportImage?

2008-05-12 Thread Dave Hersey
Is there a way to get ICAImportImage to work correctly? Using the code in the docs, the ICAImportImageSample_Cocoa or the ICAImportImageSample_Carbon samples all gives the same results when built with the 10.5 SDK:

Re: @property question

2008-05-12 Thread Shawn Erickson
On Mon, May 12, 2008 at 2:30 PM, Craig Hopson [EMAIL PROTECTED] wrote: So, the question is, what is the difference between using self. notation and not? I have declared the properties to retain the objects. The compiler is happy, I just die at run time when I attempt to access the contents

NSURL urlWithString return nil

2008-05-12 Thread Dex Morgan
Hello, I've tried to create an NSURL with this URL: http://forum.scmf.it/index.php?showtopic449st However it returns nil. So I've tried to open it via Safari and the URL become http://forum.scmf.it/index.php?showtopic%11449st %11? Is there any way to translate these url into the correct

Re: @property question

2008-05-12 Thread Craig Hopson
Guys, I think I've been the victim of some side effect that I cannot track down. With no other changes, I tried again with each style, [ self.fieldArray addObject:inFoo ]; [ fieldArray addObject:inFoo ]; replacing all occurrences for each test, and both work - what I would

adding a custom view to NSPrintPanel

2008-05-12 Thread Victor Bovio
Hi, Does anyone knows of an example or tutorial on how to this ?? The documentation says that I have to use this method on NSPrintPanel: - (void)addAccessoryController:(NSViewController NSPrintPanelAccessorizing *)accessoryController I have no idea how a NSViewController works.. any

Re: NSURL urlWithString return nil

2008-05-12 Thread Wayne Packard
On May 12, 2008, at 3:16 PM, Dex Morgan wrote: Hello, I've tried to create an NSURL with this URL: http://forum.scmf.it/index.php?showtopic449st However it returns nil. So I've tried to open it via Safari and the URL become http://forum.scmf.it/index.php?showtopic%11449st %11? Is there any

Re: @property question

2008-05-12 Thread Phoenix Draco
Sorry if this is naïve but I have a quick follow up q (to verify that I am understanding ObjC correctly). Is it true that: The two styles seem to me to have slightly different execution paths. The first: [self.fieldArray addObject:inFoo] Would actually invoke the property accessor fieldArray

Re: @property question

2008-05-12 Thread Clark Cox
On Mon, May 12, 2008 at 3:42 PM, Phoenix Draco [EMAIL PROTECTED] wrote: Sorry if this is naïve but I have a quick follow up q (to verify that I am understanding ObjC correctly). Is it true that: The two styles seem to me to have slightly different execution paths. The first:

Re: @property question

2008-05-12 Thread Quincey Morris
On May 12, 2008, at 15:19, Craig Hopson wrote: I think I've been the victim of some side effect that I cannot track down. With no other changes, I tried again with each style, [ self.fieldArray addObject:inFoo ]; [ fieldArray addObject:inFoo ]; replacing all occurrences for

Re: NSURL urlWithString return nil

2008-05-12 Thread Andrew Farmer
On 12 May 08, at 15:16, Dex Morgan wrote: Hello, I've tried to create an NSURL with this URL: http://forum.scmf.it/index.php?showtopic449st However it returns nil. So I've tried to open it via Safari and the URL become http://forum.scmf.it/index.php?showtopic%11449st %11? There is indeed a

Re: NSURL urlWithString return nil

2008-05-12 Thread Andy Lee
Another possibility is that there is an invisible character in your URL (perhaps due to copy-paste) which Safari is kind enough to escape for you as %11. I would try deleting the showtopic449 part and retyping it by hand to make sure there is no hidden character between topic and 449.

Re: how to wrap an NSAlert so the caller can call one function and get the NSAlert return value (i.e. modal)

2008-05-12 Thread Jens Alfke
On 12 May '08, at 5:18 PM, Rua Haszard Morris wrote: Is there a way to wrap up an NSAlert, the beginSheetModalForWindow call, and the alertDidEnd implementation, such that a caller can just call one function which blocks until the alert is dismissed? No, because the application continues

Re: how to wrap an NSAlert so the caller can call one function and get the NSAlert return value (i.e. modal)

2008-05-12 Thread Ken Thomases
On May 12, 2008, at 7:18 PM, Rua Haszard Morris wrote: Is there a way to wrap up an NSAlert, the beginSheetModalForWindow call, and the alertDidEnd implementation, such that a caller can just call one function which blocks until the alert is dismissed? NSAlert has the -runModal method.

Re: NSTask waitForDataInBackgroundAndNotify and waitUntilExit

2008-05-12 Thread Torsten Curdt
On May 12, 2008, at 23:04, Shawn Erickson wrote: Your placement of waitUntilExit is blocking the runloop which needs to be running to service the background notifications you requested. Ah ...I see. That makes sense. If you want async behavior then you cannot wait on the task (at least not

Controller Cannot Be nil on binding NSTextField

2008-05-12 Thread Johnny Lundy
I am stuck on this error. 2008-05-12 20:58:58.257 TimerTest[65919:10b] An uncaught exception was raised 2008-05-12 20:58:58.259 TimerTest[65919:10b] Controller cannot be nil 2008-05-12 20:58:58.260 TimerTest[65919:10b] *** Terminating app due to uncaught exception

Getting Pixel Data From CIImage

2008-05-12 Thread Bridger Maxwell
Hey, I am trying as hard as I can to get pixel data from a CIImage, but am failing, pretty miserably. I am using render:toBitmap:rowBytes:bounds:format:colorSpace: from CIContext and it seems to work, but doesn't really. I get data in my int* pointer, but it never changes! What am I doing wrong?

Re: Controller Cannot Be nil on binding NSTextField

2008-05-12 Thread Keary Suska
on 5/12/08 7:01 PM, [EMAIL PROTECTED] purportedly said: - (void) init { deadlineTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(updateTime:) userInfo:nil repeats:YES]; self.deadlineHours = 24; self.startTime = [NSCalendarDate calendarDate]; //Current date

[SOLVED] Re: Undefined lookup, ObjC, and 64-bit

2008-05-12 Thread Nick Zitzmann
On May 12, 2008, at 1:31 PM, Jean-Daniel Dupas wrote: Unlike the 32 bits runtime, the 64 bits runtime respects class symbols visibility. If you do not export the class symbol, you cannot use it from an other binary (just like with C or C++ functions and classes). Thank you. Since more

list open application windows

2008-05-12 Thread Ben Lowndes
Hi, I'm a cocoa newbie, so I may be missing something obvious here: I'd like to get a list of open windows for all currently running applications. I've been able to get the list of running applications from NSworkspace, but can't see a method of getting the open windows. Using appleScript I

Re: Controller Cannot Be nil on binding NSTextField

2008-05-12 Thread Johnny Lundy
Yeah, a stupid mistake. Thanks for noticing that. I had that as awakeFromNib and changed it but forgot to give it a nonvoid return value. Since the error was about a controller, and only happened when I bound an IB textField, and the app ran perfectly to the console, it never occurred to

Re: list open application windows

2008-05-12 Thread Steve Christensen
On May 12, 2008, at 8:15 PM, Ben Lowndes wrote: I'm a cocoa newbie, so I may be missing something obvious here: I'd like to get a list of open windows for all currently running applications. I've been able to get the list of running applications from NSworkspace, but can't see a method of

Re: how to create .qtz file from custom cocoa app

2008-05-12 Thread Steve Christensen
On May 12, 2008, at 9:03 PM, Shashi Kumar wrote: Is it not possible that from UI, I will generate XML file which will be kind of PList file of .qtz file containing tree list of its properties. And from that XML file we will create .qtz file ?? And, no, there isn't a Cocoa API that will