Re: Object C Interacts with Solr

2011-01-18 Thread Stephen J. Butler
On Tue, Jan 18, 2011 at 2:04 PM, Bing Li wrote: > I am a new developer on iPad. I have a search engine which is on Solr ( > http://lucene.apache.org/solr). My application on iPad needs to interact > with Solr. Any mature APIs or frameworks are available to do that? I don't know of any Objective-C

Re: Setting a discontinuous selection in NSMatrix

2011-01-18 Thread James Bucanek
Sherm Pendley wrote (Tuesday, January 18, 2011 8:01 PM -0500): Try -setSelectionFrom:to:anchor:highlight: Sherm, You're right: -setSelectionFrom:to:anchor:hightlight: is the only way to do it. I tried the suggestion documented in -selectedCells and it doe

Object C Interacts with Solr

2011-01-18 Thread Bing Li
Dear all, I am a new developer on iPad. I have a search engine which is on Solr ( http://lucene.apache.org/solr). My application on iPad needs to interact with Solr. Any mature APIs or frameworks are available to do that? Thanks so much! LB ___ Cocoa-d

Re: Setting a discontinuous selection in NSMatrix

2011-01-18 Thread James Bucanek
James Bucanek wrote (Tuesday, January 18, 2011 7:45 PM -0700): However, I can find no way of programmatically setting an arbitrary selection. Everything I've tried (-selectCell:, -selectCellAtRow:column:, even -[NSCell setState:]), either doesn't update the sele

Re: Setting a discontinuous selection in NSMatrix

2011-01-18 Thread Sherm Pendley
On Tue, Jan 18, 2011 at 9:45 PM, James Bucanek wrote: > > I have an NSMatrix view that's driving me nuts. It's mode is set to > NSListModeMatrix, which allows the user to click, shift+click, > command+click, and drag to create arbitrary selections of cells. > > I can get the set of selected cells

Setting a discontinuous selection in NSMatrix

2011-01-18 Thread James Bucanek
Greetings, I have an NSMatrix view that's driving me nuts. It's mode is set to NSListModeMatrix, which allows the user to click, shift+click, command+click, and drag to create arbitrary selections of cells. I can get the set of selected cells by sending -selectedCells. However, I can find n

Re: Printing Appears Very Small in Lower-Left Corner of Page

2011-01-18 Thread Gerry Beggs
Just to follow-up (and clarify) my own problem: I have implemented NSDocument's printOperationWithSettings: method to kick off the printing process when the user selects Print from the File menu. I am using the same NSView drawRect: method to display on-screen as when printing. The Print Previe

Re: Store a file vs create on the fly?

2011-01-18 Thread Eric Gorr
It doesn't seem to me tha it will really matter based on your description. But, I'd probably go with storing it within your app bundle. This way I could make changes to the file without a recompile. On Jan 18, 2011, at 8:30 PM, Jeremy Matthews wrote: > So I have a simple app which, in essence,

Store a file vs create on the fly?

2011-01-18 Thread Jeremy Matthews
So I have a simple app which, in essence, creates a text file with some items determined by the user (kind of like an old-fashioned Mad Libs page). Most of the file does not change...I just change a few portions based upon checkbox states, textfield contents, etc. Question is: should I have that

Re: Help on Cocoa Class references

2011-01-18 Thread Marco Frisan
On Tue, 18 Jan 2011 10:49:25 -0800 (PST), Leanne Attard wrote: > i did that just by chance the problem is that clicking on the title bar is > being detected but everyone else is not detected Java events should be handled within Java code. In normal cases you should not need to implement your o

Re: Connect a NSTableView to a datasource in another nib

2011-01-18 Thread Graham Cox
On 19/01/2011, at 9:59 AM, Luc Van Bogaert wrote: > But then, I'm still wondering how I can reference the app delegate and the > data model from the data source protocol methods [[NSApp delegate] myDataModel...] --Graham ___ Cocoa-dev mailing lis

Re: Connect a NSTableView to a datasource in another nib

2011-01-18 Thread Quincey Morris
On Jan 18, 2011, at 14:59, Luc Van Bogaert wrote: > But then, I'm still wondering how I can reference the app delegate and the > data model from the data source protocol methods. I'm sure it's pretty > obvious, but clearly I'm still missing something. > > When allocating and initializing the Hi

RE: Help on Cocoa Class references

2011-01-18 Thread Shawn Bakhtiar
Shoudn't the Java AWT have these functions exposed on the window instance? http://journals.ecs.soton.ac.uk/java/tutorial/post1.0/ui/mouselistener.html (First one I found on google) But if what you are looking for is to track objects inside the OGL window you would probably have to use some k

Re: Window Controllers & Window Deallocation

2011-01-18 Thread Eric Gorr
Thanks to Mike Ash in an IRC chat, I believe I have the answer to this particular question. Memory Management Programming Guide - Weak References http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmObjectOwnership.html#//apple_ref/doc/uid/2043

Re: Connect a NSTableView to a datasource in another nib

2011-01-18 Thread Luc Van Bogaert
On 18 Jan 2011, at 23:28, Quincey Morris wrote: > The data source is part of the window interface. I think you mean to say you > want to keep the (or, a) data model in the app delegate, which is fine. Put > it there, but implement the data source protocol in the History window > controller ...

Re: Connect a NSTableView to a datasource in another nib

2011-01-18 Thread Quincey Morris
On Jan 18, 2011, at 14:10, Luc Van Bogaert wrote: > I have two seperate nib files (MainMenu.xib and History.xib). I have > implemented a controller (HistoryController) to manage the window in > History.xib. The history window is displayed using a button in MainMenu.xib > that sends an action me

Connect a NSTableView to a datasource in another nib

2011-01-18 Thread Luc Van Bogaert
Hi, I've been struggling for some time getting to work the following app design: I have two seperate nib files (MainMenu.xib and History.xib). I have implemented a controller (HistoryController) to manage the window in History.xib. The history window is displayed using a button in MainMenu.xib

Window Controllers & Window Deallocation

2011-01-18 Thread Eric Gorr
This seems like it should have an easy answer and one that I should know, but my brain has frozen up on this and I cannot seem to determine if things are working as expected or if there is something more I should be doing. First, here is a sample project that demonstrates the behavior I am seein

Re: Core Data Migration Error

2011-01-18 Thread Jerry Krinock
On 2011 Jan 16, at 17:31, Michael Link wrote: > This migration is using the default mapping model created in Xcode. The Event > entity was changed to have an abstract parent entity, before it stood alone. Migrating abstract entities can be problematic. For example, http://www.cocoabuilder.com

Re: Help on Cocoa Class references

2011-01-18 Thread Leanne Attard
i did that just by chance the problem is that clicking on the title bar is being detected but everyone else is not detected --- On Tue, 1/18/11, mlist0...@gmail.com wrote: > From: mlist0...@gmail.com > Subject: Re: Help on Cocoa Class references > To: "Leanne Attard" > Cc: "cocoa-dev list"

Re: Help on Cocoa Class references

2011-01-18 Thread mlist0...@gmail.com
On Jan 18, 2011, at 2:46 AM, Leanne Attard wrote: > When i click on the title bar… You don't normally handle titlebar clicks yourself. What are you trying to do with click on the titlebar? _murat___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Help on Cocoa Class references

2011-01-18 Thread Uli Kusterer
On Jan 18, 2011, at 4:27 PM, Leanne Attard wrote: > I am developing a java application displaying a window, and then i am taking > its native part to draw onto it using openGL, the native part gives me a > NSView pointer. I am able to draw onto it however not able to get mouse/key > events appr

Re: Help on Cocoa Class references

2011-01-18 Thread Leanne Attard
Ok thanks for your explanation about private classes! I am developing a java application displaying a window, and then i am taking its native part to draw onto it using openGL, the native part gives me a NSView pointer. I am able to draw onto it however not able to get mouse/key events appropr

Re: Help on Cocoa Class references

2011-01-18 Thread Uli Kusterer
On Jan 18, 2011, at 11:46 AM, Leanne Attard wrote: > NSWindowViewAWT when the window is started That looks like a private class used internally by Apple's AWT Java implementation. Probably a replacement for the window's content view would be my guess. > NSThemeFrame when clicking on the title

Re: NSNotFound

2011-01-18 Thread Uli Kusterer
On Jan 18, 2011, at 9:58 AM, Matt Gough wrote: > And as a side note, NSNotFound != kCFNotFound. > > This has caught me out a couple of times in code that is dealing with both NS > and CF objects. Whoo yeah! That was a fun afternoon ... Cheers, -- Uli Kusterer "The Witnesses of TeachText are ev

Help on Cocoa Class references

2011-01-18 Thread Leanne Attard
I am a newbie in cocoa so please i apologize for posing a basic question!  I am developing a java application displaying a window, and then i am taking its native part to draw onto it using openGL, the native part gives me a NSView pointer.  I am able to draw onto it however not able to get mous

Re: NSNotFound

2011-01-18 Thread Matt Gough
And as a side note, NSNotFound != kCFNotFound. This has caught me out a couple of times in code that is dealing with both NS and CF objects. Matt On 18 Jan 2011, at 04:58:06, Uli Kusterer wrote: > On 17.01.2011, at 19:50, Quincey Morris wrote: >> In a slightly larger, conceptual sense, this mea