NSTextView resizeability and scrolling

2009-09-08 Thread Stamenkovic Florijan
Hi all, I am trying to make a user interface in which there is a view that contains multiple subviews, one of which is an NSTextView. The parent view should be embedded in an NSScrollView. The idea is that when the NSTextView is typed in, and possibly resizes as a consequence, it's parent

Re: NSTextView resizeability and scrolling

2009-09-09 Thread Stamenkovic Florijan
Hi Ross, Thanks for your reply, On Sep 09, 2009, at 13:15, Ross Carter wrote: I've googled for a solution, found nothing. I tried making it by observing the NSViewFrameChangedNotification of the NSTextView from it's parent, and resizing, but this is more tricky then I imagined. I think yo

Custom NSActionCell subclass + table column binding

2009-09-10 Thread Stamenkovic Florijan
Hi all, I've made an NSActionCell subclass for indicating the priority of an object, similar to the rating column in iTunes. The visual aspects of it are working fine, as well as displaying the correct priority for table rows that have a priority value set. The problem is setting the new

[SOLVED] Re: Custom NSActionCell subclass + table column binding

2009-09-10 Thread Stamenkovic Florijan
On Sep 10, 2009, at 09:40, BareFeet wrote: Hi Florijan, I've made an NSActionCell subclass for indicating the priority of an object, similar to the rating column in iTunes. The visual aspects of it are working fine, as well as displaying the correct priority for table rows that have a pr

Re: Newbie question - core data

2009-09-14 Thread Stamenkovic Florijan
Darren, On Sep 14, 2009, at 09:11, Darren Wheatley wrote: Hi, I'm learning Cocoa / Objective-C. Right now I'm trying to build a simple Core Data application. I've built a helper app to read in CSV and populate an XML core data store. That works fine. I have seen lots of examples of bin

Re: NSTextView resizeability and scrolling

2009-09-14 Thread Stamenkovic Florijan
On Sep 11, 2009, at 13:36, Ross Carter wrote: It looks like you instantiate the NSTextView in the nib. I would start by setting up the NSTextView manually and adding it as a subview to your FSEmbeddedTextView2 instance. Make sure that the textView has its resizing behavior set up correctly

NSTableColumn value binding + keypath over a relationship

2009-09-29 Thread Stamenkovic Florijan
Hi all, I have been experiencing an error in my app that does not make sense... Here is the situation: A CoreData app. I have a table and one of it's columns' value bound to an array controller's "arrangedObjects.group.title". The controller contains objects of the Note entity. Note relat

Re: NSTableColumn value binding + keypath over a relationship

2009-09-29 Thread Stamenkovic Florijan
On Sep 29, 2009, at 17:37, Bryan Matteson wrote: Cannot remove an observer for the key path "group.name" from , most likely because the value for the key "group" has changed without an appropriate KVO notification being sent. Check the KVO-compliance of the FSNote class. Means exactly

Re: NSTableColumn value binding + keypath over a relationship

2009-09-29 Thread Stamenkovic Florijan
On Sep 29, 2009, at 19:21, Quincey Morris wrote: On Sep 29, 2009, at 15:27, Stamenkovic Florijan wrote: // the group dragged to NSManagedObject* group = [((NSTreeNode*)proposedParentItem) representedObject]; // the URIs of Notes being

Re: NSTableColumn value binding + keypath over a relationship

2009-09-30 Thread Stamenkovic Florijan
On Sep 30, 2009, at 10:22, Bryan Matteson wrote: I'm going to take a stab in the dark and predict that you *don't* have "rearranges content automatically" checked for the array controller, I do. and that checking it will cause the error message to go away. It does not. Try uncheckin

Dynamic NSArrayContent changing [was: NSTableColumn value binding]

2009-09-30 Thread Stamenkovic Florijan
On Sep 30, 2009, at 10:36, Bryan Matteson wrote: May also want to look at this. http://www.mail-archive.com/cocoa-dev@lists.apple.com/msg31802.html It seems to be very possible that it may be a bug, but it's also a common coding mistake as well. Hope it works itself out. Bryan, I looked

Re: Deleting CalTasks through an Array.

2009-09-30 Thread Stamenkovic Florijan
On Sep 30, 2009, at 12:32, Joshua Garnham wrote: I have an Array of strings and want to remove CalTasks with titles of any of the strings. I know I can loop through a array with for(NSString *title in array) { } and delete tasks with removeTask:title error:nil But it won't let me delete a

Re: Deleting CalTasks through an Array.

2009-10-01 Thread Stamenkovic Florijan
Especially with the NSPredicate. From: Stamenkovic Florijan To: Joshua Garnham Cc: cocoa-dev@lists.apple.com Sent: Wednesday, 30 September, 2009 20:24:59 Subject: Re: Deleting CalTasks through an Array. On Sep 30, 2009, at 12:32, Joshua Garnham wrote: > I have an Array of strings and want

Re: Mixed Core Data and "static" nodes in outline view

2009-10-01 Thread Stamenkovic Florijan
On Sep 30, 2009, at 20:58, Rick Mann wrote: On Sep 30, 2009, at 16:22:45, Rick Mann wrote: I'm looking at ways of grouping some Core Data objects in a outline view. What I have are 3 or 4 different entities, and I want each of the objects of each type to appear under a parent item in the

Re: Core-data binding to all entities

2009-10-02 Thread Stamenkovic Florijan
Martin, I am actually working on an identical app (as far as your description goes), as a way of learning CoreData, but also to have something to organize my todos and reminders in... I am dealing with the same problem you describe below, though I took a slightly different approach. I bin

Subclassing NSPredicate

2009-10-02 Thread Stamenkovic Florijan
Hi all, The documentation does not discuss this as all, as far as I have looked through it. Googling brings up nothing. So I am wondering: is anyone doing this? Any caveats? I can live without it, but it would make what I am doing easier if I could subclass it. TIA, F __

Re: Subclassing NSPredicate

2009-10-02 Thread Stamenkovic Florijan
On Oct 02, 2009, at 12:17, Nick Zitzmann wrote: On Oct 2, 2009, at 10:08 AM, Stamenkovic Florijan wrote: The documentation does not discuss this as all, as far as I have looked through it. Googling brings up nothing. So I am wondering: is anyone doing this? Any caveats? With a few

Re: grouping undo across method calls in CoreData

2009-10-05 Thread Stamenkovic Florijan
Jim, An interesting situation. I do not have anything definitive, but just some ideas and comments On Oct 05, 2009, at 09:10, Jim Thomason wrote: -(void) createOrder { int highOrderIndex = [self getHighestIndexSomeHow]; [self setValue:[NSNumber numberWithInt:highOrderIndex] forKey:@

Re: NSTableView: no display until header clicked

2009-10-05 Thread Stamenkovic Florijan
On Oct 05, 2009, at 13:08, Volker in Lists wrote: so you seemed to have populated the array controller in a non KVO way... but still, w/o code not to be discussed. I think that is the problem. If you bind the content of an NSArrayController to someObject.variable, then the controller will b

Re: [Solved] Re: NSTableView: no display until header clicked

2009-10-05 Thread Stamenkovic Florijan
On Oct 05, 2009, at 14:05, Kyle Sluder wrote: On Mon, Oct 5, 2009 at 10:39 AM, David Hirsch wrote: NSArrayController has things like insert: or add: Okay... not sure what that has to do with anything. NSArrayController's content is usually bound to an ordered property (itself often an NSArr

Re: NSOutlineView - Automatically select newly added item - Help needed

2009-10-05 Thread Stamenkovic Florijan
On Oct 05, 2009, at 19:44, Mario KuĆĄnjer wrote: Hello to the list ! Request for help regarding a little problem. So I have this piece of code: - (IBAction)addNewItem:(id)sender { if ([lsOutlineView selectedRow] < 0) { [sourceListLevelZero addObject:[Parent new]

Re: Toolbar with capsule style items (Similiar to Mail)

2009-10-16 Thread Stamenkovic Florijan
On Oct 15, 2009, at 13:39, Mazen Abdel-Rahman wrote: Hi All, I am new at programming with Cocoa - so I had a basic question. Is it possible to create a capsule style toolbar with a search field in it (like how Mail's toolbar is) just using interface building to create the UI? And if so

Re: Binding Enabled property to NSArrayController selection

2009-10-19 Thread Stamenkovic Florijan
Hi Matthew, On Oct 19, 2009, at 07:08, Matthew Lindfield Seager wrote: As discussed previously on this list I am using the data source methods of NSOutlineView to display the contents of two separate NSArrayControllers. When an item is selected I use outlineViewSelectionDidChange: to manua

Re: Binding Enabled property to NSArrayController selection

2009-10-19 Thread Stamenkovic Florijan
On Oct 19, 2009, at 07:59, Matthew Lindfield Seager wrote: 2009/10/19 Stamenkovic Florijan I think so... When binding the enabled state of a toolbar item you need to make sure that the item does not autovalidate. The "Autovalidates" checkbox can be found in the attributes pa

Re: Core data design related question

2009-10-22 Thread Stamenkovic Florijan
Hi Marc, On Oct 20, 2009, at 16:11, Marc Rink wrote: Heyas, I am quite new to Objective-C (and to some extend to OO concepts as well), so please be gentle with me :) I have a core data based document application that purpose is to access a mysql database (i am using the MCP Kit). The doc

Re: Core data design related question

2009-10-22 Thread Stamenkovic Florijan
On Oct 22, 2009, at 15:46, Marc Rink wrote: This means i need the ObjectController in every view i want to have access to the connection parameters. Yep, that seems right. However, i am now troubling around: I set the value Binding of the Textfield to the object Controllers.selection. in

Re: Force subviews to stay in place during live resize

2009-10-24 Thread Stamenkovic Florijan
On Oct 24, 2009, at 08:42, Zephyroth Akash wrote: I'm creating a view containing different subviews programmatically. Like this: 1 - NSOutlineView 2 - NSView 3 - NSView This tells almost nothing to the list. Post code. Added according to the choice made in NSOutlineView: 4 - NSView 5 - NS

Re: NSComboBoxCell in a NSTableView

2009-10-24 Thread Stamenkovic Florijan
On Oct 24, 2009, at 10:04, Timothy Reaves wrote: What is the correct way to size this? I have it added, and it's used. But by default, it doesn't size to hold it's content. I can set he width of the table column to a better width, but I can't seem to find how to size the height. Is

NSWindow curved shape antialiasing + shadow

2009-06-10 Thread Stamenkovic Florijan
Hi all, I am experimenting with custom shaped NSWindows, that I draw into using NSBezierPath. Generally all is good, but there is a small problem. If the edge of the window is defined by a curve that is antialiased, then the shadow is drawn at the first outside pixel that is not drawn int

Newbie question on listing out detailed items

2009-05-22 Thread Stamenkovic Florijan
Hi all, Maybe this has been answered before, if so I am sorry to pollute. I've googled the archives, looked through CocoaDev, went through the documentation, and was not able to figure this out. Also I must say that I am a complete beginner in Cocoa. I just finished Aaron Hillegass's book

[SOLVED] Re: Newbie question on listing out detailed items

2009-05-23 Thread Stamenkovic Florijan
Graham, Jason, Thanks for your replies. What I want: a listout of items, each of which presents info and a number of controls. Typical example: Safari's downloads window. ... Any pointers to documentation on how to deal with this would be very appreciated. Perhaps I am simply using the wr

Bound NSPopUpButton + null at the beginning

2009-05-26 Thread Stamenkovic Florijan
Hi all, I am trying to figure out how to properly accomplish the following, and after reading docs, references and googling, I am still stuck. Any help appreciated: 1. Have an NSPopUp, "Contents" and "Content values" bound to an NSArrayController's "arrangedObjects" and "arrangedObjects.

Re: Bound NSPopUpButton + null at the beginning

2009-05-27 Thread Stamenkovic Florijan
On May 26, 2009, at 16:55, Stamenkovic Florijan wrote: Hi all, I am trying to figure out how to properly accomplish the following, and after reading docs, references and googling, I am still stuck. Any help appreciated: 1. Have an NSPopUp, "Contents" and "Content valu