Re: Help to understand how do events work

2010-10-06 Thread eveningnick eveningnick
I'm sorry, i guess i have posted the messages privately before, thinking they are posted to a mailing list. I have used before only forums and don't have enough experience with mailing lists :) Hope this time the message will come to the right destination Hi Jonathan Unfortunately this doesn't wor

Re: Documentation Hard Copy?

2010-10-06 Thread John Joyce
Hi Tom, No it is not. I often find this with some documents as well. The best solution is to use a laser printer and the hardest bit is getting things printed right on both sides of the page... :) You can probably print anything you like, as long as you're not selling it or otherwise infringing

Documentation Hard Copy?

2010-10-06 Thread Tom Davies
I like the Apple developer documentation, but I would like it in printed form -- I just find I absorb the tutorials better that way. Is it available as hard copy? Alternatively, would the licence it's provided under allow me to print the PDF documentation via a print on demand provider like lul

Re: Any way to synthesize KVC compliant collections?

2010-10-06 Thread Jerry Krinock
On 2010 Oct 06, at 10:54, Quincey Morris wrote: > It would also be nice if Xcode had more direct support for inserting > templated accessors (I can never quite remember the form of the accessors, > and getting them slightly wrong is a frustrating exercise in debugging), and > if its Refactor s

Re: Problem connecting to Oracle with app run from XCode

2010-10-06 Thread Greg Guerin
Timothy Mowlem wrote: I can run the XCode built app as well from the command line after setting LD_LIBRARY_PATH (as a non-admin user and without using sudo). If that env-var is the cause, then printf() the value of it in both cases, and manually compare them. Use the getenv() C function.

Re: Problem connecting to Oracle with app run from XCode

2010-10-06 Thread Timothy Mowlem
Hello Francis, Thank you for your feedback. I will try and get Wireshark up and running. I have been meaning to get proficient with it for a while so this is a good chance to use it. I don't see why if couldn't sniff any traffic on the LAN so I think it should work. However I very much doubt

Re: what are the scenarios for an app to be terminated?

2010-10-06 Thread Seth Willits
On Oct 6, 2010, at 12:13 PM, eveningnick eveningnick wrote: > Now i am wondering, how can i correctly "release" myobject (i.e. make > its -dealloc called) You don't care if it gets deallocated. Really. Snow Leopard supports "sudden termination" which means that it's possible that your applicat

what are the scenarios for an app to be terminated?

2010-10-06 Thread eveningnick eveningnick
Hello! What are all the scenarios for terminating the Cocoa application, and can i catch the moment of quitting and do some "before quit" actions? I am writing a "naked" cocoa application (basically for myself, to understand what happens under the hood). So, instead of calling NsApplicationMain, i

Re: Let the runloop process its queue during a long operation

2010-10-06 Thread Matt Neuburg
On Wed, 6 Oct 2010 15:53:13 +0400, eveningnick eveningnick said: >Hello >I have an application that transforms a very big file, and during that >operation i want to give a chance to user to press Esc and cancel this >transformation. You're going to use a secondary thread and that's that. I would

NanoStore has moved to Google Code

2010-10-06 Thread Tito Ciuro
Hello everyone, Based on feedback from other developers, I have decided to move NanoStore, a Cocoa wrapper for SQLite, to Google Code: http://code.google.com/p/nanostore/ The Sourceforge repository is now considered obsolete and will be removed shortly. Regards, -- Tito _

Preventing a window from moving while dragging a view.

2010-10-06 Thread Tony Romano
I have a NSPanel with a NSToolbar and a tabless NSTabView to create an inspector. The NSToolbarItems for the NSToolbar use a custom view. This all works as expected. I am trying to implement drag/drop to move toolbar items to/from different Inspector Panels to allow the user to customize thei

Re: Any way to synthesize KVC compliant collections?

2010-10-06 Thread Quincey Morris
On Oct 6, 2010, at 10:03, Citizen wrote: > I was hoping it would provide me with less code to write and maintain. Make > it easier for me to support code for both garbage collected and reference > counted environments. And provide me with KVO compliant accessors. ;-) I'd be interested to see, i

Re: JDBC from Cocoa or the like

2010-10-06 Thread Dru Satori
I have made freetds work on iOS. It is doable, and it is usable. I never did anything with it because greeted is gpl, so turning it into a commercial product on the AppStore presented non technical "challenges". I also have PostgreSQL client Libraries working on iOS. If you want help with th

Re: NSImage is Caching

2010-10-06 Thread Chris Tracewell
Thanks for the suggestions, I did try that and -recache as well but neither works. I really think this has to be related to the URL caching but I am not sure where to start. I've been diggin through NSURL, NSURLConnection and NSURLCache but have yet to find the solution. -chris On Oct 6, 201

Re: NSOutlineView multi cell type binding query

2010-10-06 Thread Corbin Dunn
Quincey pretty much got it right. Here's what happens: Table needs a cell (to draw, edit, type select, etc). It calls -preparedCellAtColumn:row: -- this is a public funnel point, and can be overridden. Some examples on the dev site do this. preparedCellAtColumn:row does this, in this order (whi

Re: JDBC from Cocoa or the like

2010-10-06 Thread colors
Alex, I have the same problem you document below, so looked into your ODBC reference. However, it looks like they want to sell me a $2000 router software package to work with the iOS. What I need is a framework (much like easyDB, but allowed to be used on a commercial product). Did I miss-re

Re: Let the runloop process its queue during a long operation

2010-10-06 Thread Andreas Grosam
On Oct 6, 2010, at 1:53 PM, eveningnick eveningnick wrote: > Hello > I have an application that transforms a very big file, and during that > operation i want to give a chance to user to press Esc and cancel this > transformation. Therefore i need to make mainRunLoop run inbetween > some "phases"

Re: Help to understand how do events work

2010-10-06 Thread jonat...@mugginsoft.com
On 6 Oct 2010, at 12:39, eveningnick eveningnick wrote: > Hello! > I have created a cocoa application that has unusual behavior: it has a > window (NSPanel), which does not activate the application, when it's > clicked. This window is ordered always on top of the other windows. So > it's like a "t

Re: Let the runloop process its queue during a long operation

2010-10-06 Thread Dave Keck
> Can i make a runloop run only one time through the queue, and then > return back to processing of that big file? See CFRunLoopRunInMode(), specifically the returnAfterSourceHandled argument. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Let the runloop process its queue during a long operation

2010-10-06 Thread eveningnick eveningnick
Hello I have an application that transforms a very big file, and during that operation i want to give a chance to user to press Esc and cancel this transformation. Therefore i need to make mainRunLoop run inbetween some "phases" of the file transformation. There's an idea to create a separate "file

Re: NSImage is Caching

2010-10-06 Thread slasktrattena...@gmail.com
NSImage has a -setCachePolicy: (?) method. Not sure if it's the right name, but you can look it up in the docs. On Tue, Oct 5, 2010 at 11:46 PM, Chris Tracewell wrote: > I have an NSImageView that accepts an image drop then sizes the image and > ftp's it to a web server. The image view is bound

Help to understand how do events work

2010-10-06 Thread eveningnick eveningnick
Hello! I have created a cocoa application that has unusual behavior: it has a window (NSPanel), which does not activate the application, when it's clicked. This window is ordered always on top of the other windows. So it's like a "tooltip" window (basically it is a popup thing, that drops down when

Re: Any way to synthesize KVC compliant collections?

2010-10-06 Thread Quincey Morris
On Oct 6, 2010, at 03:18, Citizen wrote: > Is there any way to synthesize (using @synthesize) KVC compliant collections? > > I know there are scripts in the Xcode scripts menu to generate declarations > and definitions along the lines of: > > - (NSArray *) myArray; > - (unsigned) countOfMyArray

Re: NSOutlineView multi cell type binding query

2010-10-06 Thread jonat...@mugginsoft.com
On 6 Oct 2010, at 11:29, Quincey Morris wrote: > > This all means that anything you choose to configure in #1 may or may not > still be in effect by the time you get to #2, but that's an implementation > detail on which you cannot rely, because there's no API contract that > anything is kept.

Re: Problem connecting to Oracle with app run from XCode

2010-10-06 Thread Francis Devereux
On 6 Oct 2010, at 00:07, Timothy Mowlem wrote: > Hello, > > I am trying to get OCILib (http://orclib.sourceforge.net/), a free Oracle > library, running on MacOSX. I have built the library from source and > successfully run a test class via the terminal containing the example code in > the OCI

Re: -[NSColor setBackgroundColor:] not working in 10.6

2010-10-06 Thread Hamish Sanderson
Typo in the subject line; it should've read: -[NSImage setBackgroundColor:] not working in 10.6 Hamish -- Hamish Sanderson Production Workflow Developer Sun Branding Solutions Ltd Tel: +44(0)1274 200 700 www.sunbrandingsolutions.com ___

Re: NSOutlineView multi cell type binding query

2010-10-06 Thread Quincey Morris
On Oct 6, 2010, at 02:58, jonat...@mugginsoft.com wrote: > What does work is: > > 1. in - outlineView:dataCellForTableColumn:item: construct my popup cell > when required. > 2.in - outlineView:willDisplayCell:forTableColumn:item: select item in popup > cell according to model. > > In step 1 I

Re: NSOutlineView multi cell type binding query

2010-10-06 Thread jonat...@mugginsoft.com
> > I think it is your misunderstanding of what is going on. > > When the user interacts with a cell (editing, or tracking - in this case, > tracking is happening), the cell is copied. This is required, if you think > about it, since you don't want to have any other cells in the table be > r

-[NSColor setBackgroundColor:] not working in 10.6

2010-10-06 Thread Hamish Sanderson
Hi, I have a simple test app that reads a PDF file into an NSImage, sets its background color to white, and draws it into an NSView subclass: @implementation CTView - (id)initWithFrame:(NSRect)frame { self = [super initWithFrame:frame]; if (self) { NSURL *url = [NSURL fileURLWithPath