Re: Core Animation and Run Loops

2009-09-27 Thread Shlok Datye
. For your information, this was a bug that has been fixed in Snow Leopard. I'm therefore curious: Have you tried running a blocking NSAnimation along with a CA-animation in Snow Leopard? Shlok Datye Coding Turtle http://codingturtle.com Hi, Today I read this in wikipedia:

Re: Core Data - attribute to hold an array of strings

2009-08-09 Thread Shlok Datye
Look for these classes in the documentation. If they conform to the NSCoding protocol they can be archived. If they don’t, they can’t, and you might be able to find something useful by googling for "SomeClass NSCoding". Shlok Datye Coding Turtle http://codingturtle.com On 09.0

Re: Core Data - attribute to hold an array of strings

2009-08-09 Thread Shlok Datye
Create an attribute of type "Binary Data". Encode your anArray of strings into an NSData using something like "NSData *arrayData = [NSArchiver archivedDataWithRootObject:anArray];". Finally, put arrayData into the attribute. Shlok Datye Coding Turtle http://codingturtle

Re: Adding Padding To The ‘left’ of a Tex t Field.

2009-08-07 Thread Shlok Datye
, Graham's solution might be a much better one. Shlok Datye Coding Turtle http://codingturtle.com On 07.08.2009, at 10:08, Joshua Garnham wrote: Thanks that works perfectly! One question though, what code would I need to add to also give it padding to the top of the text field? Thanks

Re: Adding Padding To The ‘left’ of a Tex t Field.

2009-08-07 Thread Shlok Datye
much, for obvious reasons. Anyone know of alternatives? Shlok Datye Coding Turtle http://codingturtle.com On 07.08.2009, at 07:18, Joshua Garnham wrote: I have a text field with a background but to make it look right the text field needs to have some padding (or a slight indent) on the left

Re: no scroll bars (NSTableView)

2009-06-09 Thread Shlok Datye
nough. In any case, you should hopefully be able to adapt this to your needs. Shlok Datye Coding Turtle http://codingturtle.com On 09.06.2009, at 16:46, Martin Batholdy wrote: ok, I think now I can describe my problem with a little more detail; I have a table view which has only one column.

Re: no scroll bars (NSTableView)

2009-06-09 Thread Shlok Datye
window)? Can you post a sample project that replicates your problem? Shlok Datye Coding Turtle http://codingturtle.com On 09.06.2009, at 01:57, Martin Batholdy wrote: hi, I have set up a NSTableView in the Interface Builder. I have connected this with a NSObject Outlet. And I have set the

Re: Bindings and core data

2009-05-27 Thread Shlok Datye
ubsection on this page: http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdUsingMOs.html Shlok Datye Coding Turtle http://codingturtle.com On 27.05.2009, at 21:18, Michael Süssner wrote: Hi I am experimenting with core data and bindings. I have a core data table w

Re: NSTextFieldCell Delegate?

2009-05-27 Thread Shlok Datye
object]; int colIndex = [tableView editedColumn]; int rowIndex = [tableView editedRow]; NSText *fieldEditor = [tableView currentEditor]; would give you column and row indices and the field editor. Shlok Datye Coding Turtle http://codingturtle.com On 27.05.2009, at 19:46, Walker Argendeli wrote: I

Re: Class Design for delegate, outlets, and mouse events

2009-05-26 Thread Shlok Datye
to detect mouse events on them? Will setting their targets and actions, and possibly determining which button was clicked using the actions' "sender" arguments, not suffice? If not, I believe you will have to subclass NSButton to override the mouse event-handling methods.

Re: Underlining a Tab item label

2009-05-26 Thread Shlok Datye
You can subclass NSTabViewItem, override its drawLabel:inRect:, and put your custom drawing code there. Shlok Datye Coding Turtle http://codingturtle.com On 25.05.2009, at 18:41, David Alter wrote: With NSTabView I can set the font of the NSTabViewItem label. Is there a way to make it