Re: Bindings - newbie question

2008-09-01 Thread Quincey Morris
On Sep 1, 2008, at 22:25, Oleg Krupnov wrote: What I do: From within MyDocument's windowControllerDidLoadNib message: [myController bind: @"currMode" toObject: self withKeyPath:@"currMode" options:nil]; I do not override bind, unbind etc. of MyController relying on the default implementatio

Re: Creating movie on background thread

2008-09-01 Thread Quincey Morris
On Sep 1, 2008, at 21:50, Roger Herikstad wrote: Sorry for the cross-posting, but I thought my issue to relevant for both lists. I need to create an image sequence of some plots from a graphing application that i'm writing, and I would like to be able to do this on a background thread. Basically

Bindings - newbie question

2008-09-01 Thread Oleg Krupnov
I have two objects: a MyDocument (NSDocument subclass) and a custom MyController controller (NSObject subclass). In the MyDocument there is "currMode" property. The controller class also has the currMode property. I want these two properties to be bound to each other two-way, so that when either of

Re: Creating movie on background thread

2008-09-01 Thread James Chen
Hi, Despite thread issue, I think there's a memory management issue which is mentioned in Apple's document,"Memory Management Programming Guide for Cocoa"(http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/ Concepts/AutoreleasePools.html). "If you write a loop that creates many

Creating movie on background thread

2008-09-01 Thread Roger Herikstad
Hi lists, Sorry for the cross-posting, but I thought my issue to relevant for both lists. I need to create an image sequence of some plots from a graphing application that i'm writing, and I would like to be able to do this on a background thread. Basically, I ask my app to plot some signals on sc

NSDateFormatter and Display Value bindings

2008-09-01 Thread Jamie Phelps
I have a label that I want to display the date range for which I am displaying data. So, the label would say "July 1, 2008 to September 1, 2008" for my QTD numbers. That is simple enough, but when I set the display value binding to my startDate and endDate objects' values, they display with

acceptsFirstMouse with NSTableView

2008-09-01 Thread Ron Wagner
I am trying to get an NSTableView to change it's selection when clicking on one if it's cells when it's window is not active. I have subclassed NSTableView, overridden acceptsFirstMouse: and return YES unconditionally, and verified that it is getting called. Can't seem to get it to change b

Re: basic Core Data scaling question

2008-09-01 Thread Quincey Morris
On Sep 1, 2008, at 18:52, Michael B Johnson wrote: The problem comes when I start adding the Images to the managed store. I time how long it takes to add 100 at a time. The first 100 go in 0.022 seconds, but by the time I've inserted 4,200 of them, it's taking 1 second/100, at 20,000 it's

Re: HFS Path To POSIX Path

2008-09-01 Thread J. Todd Slack
HI Alex, Yes that does work for me in two steps, but I cannot get it to work in one. Thank You! -Jason On Sep 1, 2008, at 6:14 PM, Alex Heinz wrote: You could try: set myPath to get the location of the current track set myPOSIXPath to POSIX path of myPath (or perhaps combine into one st

Re: Objective-C and AppleScript

2008-09-01 Thread Mike Fischer
Am 01.09.2008 um 22:49 schrieb John Love <[EMAIL PROTECTED]>: I am trying to convert as much as I can of my former Studio code over to Obj-C and thanks to this Mailing List I have been successful so far .. but here's a stumper or two: Here are 2 AppleScript statements that work in Studio: --

basic Core Data scaling question

2008-09-01 Thread Michael B Johnson
quick question: Let's say I have 100,000 ManagedObjects of type A. Each has a one-to- one relationship to a ManagedObject of type B, which has a reciprocal one-to-many relationship with all the As. Assuming I have all 100,000 As around (I've just created them in the ManagedStore) - what's

Re: Core Data: Instantiating linked entities

2008-09-01 Thread Chris Hanson
On Sep 1, 2008, at 3:15 AM, Renaud Céroce wrote: I read somewhere in Apple's doc that an object was responsible for instantiating the other objects it depends on. It don't find it logical because I've already defined the relationships in the xcdatamodel The reason it is logical is that your

Re: how to delete the current user's directory?

2008-09-01 Thread Chris Suter
Hi Chris, On Tue, Sep 2, 2008 at 11:00 AM, Chris Hanson <[EMAIL PROTECTED]> wrote: > On Sep 1, 2008, at 3:46 AM, XiaoGang Li wrote: > >> hi, list, I have an uninstaller application , which is used to delete >> the files installed; and also i have a file which located in the current >> user's d

Re: HFS Path To POSIX Path

2008-09-01 Thread Alex Heinz
You could try: set myPath to get the location of the current track set myPOSIXPath to POSIX path of myPath (or perhaps combine into one statement, which I think should work.) Alex On Sep 1, 2008, at 6:00 PM, J. Todd Slack wrote: Hi Gregory, What is the proper way to convert an HFS Path to

Re: HFS Path To POSIX Path

2008-09-01 Thread J. Todd Slack
Hi Gregory, What is the proper way to convert an HFS Path to a POSIX path? The proper way is to make whatever effort you can to avoid having an HFS path to worry about in the first place. So if you have any control over that end of things, I'd say avoid it. In particular, if you're stori

Re: how to delete the current user's directory?

2008-09-01 Thread Chris Hanson
On Sep 1, 2008, at 3:46 AM, XiaoGang Li wrote: hi, list, I have an uninstaller application , which is used to delete the files installed; and also i have a file which located in the current user's directory, like the ~/Library/LaunchAgents/com..plist. and how can i delete this kind

Re: HFS Path To POSIX Path

2008-09-01 Thread Gregory Weston
J. Todd Slack wrote: HI All, What is the proper way to convert an HFS Path to a POSIX path? The proper way is to make whatever effort you can to avoid having an HFS path to worry about in the first place. So if you have any control over that end of things, I'd say avoid it. In particular,

Re: NSTableView/NSOutlineView variable row height

2008-09-01 Thread Graham Cox
On 2 Sep 2008, at 3:58 am, Kevin Meaney wrote: I'm new to NSTableView and more specifically NSOutlineView. I want to have variable height rows in the outline view, and I need to keep Tiger compatibility. Tiger provides the informal protocol method heightOfRowByItem that looks like it can

Re: HFS Path To POSIX Path

2008-09-01 Thread James W. Walker
On Sep 1, 2008, at 5:27 PM, J. Todd Slack wrote: What is the proper way to convert an HFS Path to a POSIX path? So take: Husband:Users:slack:Music:iTunes:iTunes Music:Adult:Resucitation:03 - Minors at night.mp3 and convert to: /Users/slack/Music/iTunes:/Tunes Music/Adult/ Resucitation/03

Re: NSArray as a static

2008-09-01 Thread Graham Cox
On 2 Sep 2008, at 6:47 am, Richard Good wrote: So let me rephrase the question How do I create an array of constant strings such that I have only one instance for the entire class, or is that just not possible. If its not possible how do you approach the problem in Objective C. for exampl

HFS Path To POSIX Path

2008-09-01 Thread J. Todd Slack
HI All, What is the proper way to convert an HFS Path to a POSIX path? So take: Husband:Users:slack:Music:iTunes:iTunes Music:Adult:Resucitation:03 - Minors at night.mp3 and convert to: /Users/slack/Music/iTunes:/Tunes Music/Adult/ Resucitation/03 - Minors at night.mp3 I thought there was

Re: NSArray as a static

2008-09-01 Thread Shawn Erickson
On Mon, Sep 1, 2008 at 1:47 PM, Richard Good <[EMAIL PROTECTED]> wrote: > I'm trying to create an array of string constants to be used inside the > Person class. > So let me rephrase the question How do I create an array of constant strings > such that I have only one instance for the entire class

Re: CGEventTap locks up entire system

2008-09-01 Thread Bill Cheeseman
on 2008-09-01 3:05 PM, Erik Aigner at [EMAIL PROTECTED] wrote: > im using CGEventTap to prevent iTunes from getting the media key > events. This works all fine, but however... when i click something on > the UI of my application the entire system UI freezes - game over. > > Why is this happening?

re:Core Data: Instantiating linked entities

2008-09-01 Thread Ben Trumbull
- (void) awakeFromInsert { [super awakeFromInsert]; _rect = [NSEntityDescription insertNewObjectForEntityForName:@"Rect" inManagedObjectContext:[self managedObjectContext]]; [_rect retain]; _color = [NSEntityDescription insertNewObjectForEntityForName:@

Re: NSArray as a static

2008-09-01 Thread Steven Noyes
On Sep 1, 2008, at 1:38 PM, Jean-Daniel Dupas wrote: Unlike java, Obj-C does not have the concept of class variable. Your static variable is a classic C variable, and C variable are not automatically initialized to NULL. The first time you call init, relationshipMatch may contains anything

Re: how to delete the current user's directory?

2008-09-01 Thread Michael Ash
On Mon, Sep 1, 2008 at 1:29 PM, Graff <[EMAIL PROTECTED]> wrote: > Note that I avoided hard-coded paths by using > NSSearchPathForDirectoriesInDomains. This is important because hard-coded > paths can break in many ways, such as when the user is on a non-english > system. Actually this is not tru

Re: Sending a GET or POST HTTP request with Cocoa

2008-09-01 Thread Tito Ciuro
Hi Brad, I'm just curious... having NSURLConnection and friends working, is there a specific reason you decided to switch to sockets? Is there something in Cocoa that you think is missing? Cheers, -- Tito On Sep 1, 2008, at 9:02, Brad Gibbs <[EMAIL PROTECTED]> wrote: You might find the

Re: Objective-C and AppleScript

2008-09-01 Thread has
John Love wrote: I am trying to convert as much as I can of my former Studio code over to Obj-C and thanks to this Mailing List I have been successful so far .. but here's a stumper or two: Here are 2 AppleScript statements that work in Studio: -- #1 works in Obj-C, so my question is = isn

Re: NSArray as a static

2008-09-01 Thread Kyle Sluder
On Mon, Sep 1, 2008 at 4:47 PM, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: > It will not compile: *facepalm* Code written in e-mail, yada yada... --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests

Reflexive Many-to-Many in Core Data?

2008-09-01 Thread Sam Krishna
Is a reflexive many-to-many relationship possible in Core Data? Here's what I'm thinking: I have a table (Verse) and it needs to have a to-many relationship back to itself. The relationship name will be crossReferences. Is this possible or will I need to come up with some contortion for Core

Re: NSArray as a static

2008-09-01 Thread Adam R. Maxwell
On Sep 1, 2008, at 11:38 AM, Jean-Daniel Dupas wrote: Unlike java, Obj-C does not have the concept of class variable. Your static variable is a classic C variable, and C variable are not automatically initialized to NULL. The first time you call init, relationshipMatch may contains anything

CGEventTap locks up entire system

2008-09-01 Thread Erik Aigner
Hi, im using CGEventTap to prevent iTunes from getting the media key events. This works all fine, but however... when i click something on the UI of my application the entire system UI freezes - game over. Why is this happening? (the event tap callback seems not to be called when i click o

NSTableView/NSOutlineView variable row height

2008-09-01 Thread Kevin Meaney
Hi, I'm new to NSTableView and more specifically NSOutlineView. I want to have variable height rows in the outline view, and I need to keep Tiger compatibility. Tiger provides the informal protocol method heightOfRowByItem that looks like it can do the job I want. However it does not seem

Re: NSArray as a static

2008-09-01 Thread Clark Cox
On Mon, Sep 1, 2008 at 11:38 AM, Jean-Daniel Dupas <[EMAIL PROTECTED]> wrote: > Unlike java, Obj-C does not have the concept of class variable. > Your static variable is a classic C variable, and C variable are not > automatically initialized to NULL. Note, for static variables, this is not true.

Re: CoreData, SQLite and GUID

2008-09-01 Thread Thomas Engelmeier
Am 27.08.2008 um 11:30 schrieb Amy Heavey: I've looked at the database structure, and it looks fairly easy to add the data, and I can do it via PHP, my problem is that each table has a ZGUID column. This doesn't hold any user entered data, it looks like it is either generated by CoreData,

Re: NSArray as a static

2008-09-01 Thread Jean-Daniel Dupas
Le 1 sept. 08 à 21:18, Kyle Sluder a écrit : On Mon, Sep 1, 2008 at 2:29 PM, Richard Good <[EMAIL PROTECTED]> wrote: What I want is how to use the Java idea of a class static variable in Objective C Because Objective-C doesn't have class variables (as Jean-Daniel noted), you have to use

Re: NSArray as a static

2008-09-01 Thread Richard Good
Very cogent description, but I'm not trying to access the array from outside of the class. I'm trying to create an array of string constants to be used inside the Person class. So let me rephrase the question How do I create an array of constant strings such that I have only one instance for

AppleScript on a Context Menu

2008-09-01 Thread David Orriss Jr
OK, it's not Cocoa, per se... but I thought someone here might know. I want to create an AppleScript that is on the Context (Ctrl+Click/ Right Click) menu. I've seen ways to do it with Automator - but that puts the script in the automator menu. I want it "top-level". Anyone have an exampl

Re: Problem with NSUserDefaultsController

2008-09-01 Thread Brian Stern
Apparently NSUserDefaults delays its saving until the next time through the event loop, perhaps by using one of the performSelector:afterDelay calls, or something like that. Is it possible that this is what's causing your issues? I ran into this problem when trying to save user defaults at

Re: Problem with NSUserDefaultsController

2008-09-01 Thread Mark Allan
>> I've been playing around with bindings to NSUserDefaultsController in a very simple app to test saving preferences, but the [sharedUserDefaultsController save:self] method seems to return immediately without waiting for the save operation to complete. The save does actually take place,

Re: Problem with NSUserDefaultsController

2008-09-01 Thread Mark Allan
On Sun, Aug 31, 2008 at 12:13 PM, Mark Allan <[EMAIL PROTECTED]> wrote: For what it's worth, I also get these compiler warnings for the line with [sharedUserDefaultsController save:] warning: multiple methods named '-save:' found warning: using '-(void)save:(id)sender' warning: also found '

Objective-C and AppleScript

2008-09-01 Thread John Love
I am trying to convert as much as I can of my former Studio code over to Obj-C and thanks to this Mailing List I have been successful so far .. but here's a stumper or two: Here are 2 AppleScript statements that work in Studio: -- #1 works in Obj-C, so my question is = isn't there a more *di

Re: QTCaptureConnectionEnabledAudioChannelsAttribute read only

2008-09-01 Thread Kyle Sluder
You should ask the QuickTime list. http://lists.apple.com/mailman/listinfo/quicktime-api --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at

Re: Problem with NSUserDefaultsController

2008-09-01 Thread Kyle Sluder
On Sun, Aug 31, 2008 at 12:13 PM, Mark Allan <[EMAIL PROTECTED]> wrote: > For what it's worth, I also get these compiler warnings for the line with > [sharedUserDefaultsController save:] > > warning: multiple methods named '-save:' found > warning: using '-(void)save:(id)sender' > warning: also fou

Re: NSArray as a static

2008-09-01 Thread Kyle Sluder
On Mon, Sep 1, 2008 at 2:29 PM, Richard Good <[EMAIL PROTECTED]> wrote: > What I want is how to use the Java idea of a class static variable in > Objective C Because Objective-C doesn't have class variables (as Jean-Daniel noted), you have to use a global variable. The "static" keyword in C mean

Re: Problem with Info.plist in 10.5 [RESOLVED]

2008-09-01 Thread Frédéric Testuz
Le 27 août 08 à 21:14, Frédéric Testuz a écrit : Hi, I'm writing a Leopard-target application. Therefore I'm willing to use UTI and the new-style for the Info.plist. I red the AppKit release notes and I thought I didn't forget something. But when I'm calling the save panel I get this erro

Re: NSArray as a static

2008-09-01 Thread Jean-Daniel Dupas
Unlike java, Obj-C does not have the concept of class variable. Your static variable is a classic C variable, and C variable are not automatically initialized to NULL. The first time you call init, relationshipMatch may contains anything and may not be NULL, and so it will never be properly in

Re: Newbie question: What does "no-op" mean?

2008-09-01 Thread Andy Lee
On Aug 30, 2008, at 10:31 PM, Jon Davis wrote: So do no-ops exist solely for the sake of being there for convention, i.e. "do this if you're implemented, ignore if not"? I'd adjust two things about your wording. First, a no-op method *is* implemented. It has an implementation that happens

NSArray as a static

2008-09-01 Thread Richard Good
I'm just learning Objective C and need to understand how to declare and use a static NSArray. I think I may be confusing the Java concept of static and Objective C's concept. What I want is how to use the Java idea of a class static variable in Objective C Here's the code I'm trying to

Re: how to delete the current user's directory?

2008-09-01 Thread Graff
On Mon, 1 Sep 2008 18:46:41 +0800, XiaoGang Li wrote: hi, list, I have an uninstaller application , which is used to delete the files installed; and also i have a file which located in the current user's directory, like the ~/Library/LaunchAgents/com..plist. and how can i delete th

Best 'native' formats for NSImage and NSSound?

2008-09-01 Thread Matt
I am building an app that uses NSImage to repeatedly draw subrects from a set of large .PNG files. I am also using NSSound to play sound effects. I have been using .WAV files for the NSSound's. In running Shark on my app recently I noticed that by far, my app spent most of its time in: CGSConvertB

Re: Core Data: Instantiating linked entities

2008-09-01 Thread Quincey Morris
On Sep 1, 2008, at 03:15, Renaud Céroce wrote: An NSArrayController resides in the document's nib. It is configured to contain objects of the ShapeManagedObject class. I read somewhere in Apple's doc that an object was responsible for instantiating the other objects it depends on. It don't fin

Re: Newbie question: What does "no-op" mean?

2008-09-01 Thread Dale Jensen
On Aug 30, 2008, at 9:31 PM, Jon Davis wrote: So do no-ops exist solely for the sake of being there for convention, i.e. "do this if you're implemented, ignore if not"? In this case, that's what it's being used for. Initially (back when we coded in assembly language,) NOP was most often u

Re: Sending a GET or POST HTTP request with Cocoa

2008-09-01 Thread Brad Gibbs
You might find the discussion here helpful: http://deusty.blogspot.com/search/label/NSURLRequest After getting NSURL's to work, I decided I'd be better off with TCP sockets. If you find yourself in the same position, you might try AsyncSockets (also available at the link above). It's non-b

Re: array segment

2008-09-01 Thread Brian Stern
Is there an obj-C equivalent to Java's System.arraycopy() which will allow me to easily copy a segment of an NSArray into a new array? subarrayWithRange: Returns a new array containing the receiver’s elements that fall within the limits specified by a given range. http://developer.a

Re: array segment

2008-09-01 Thread James Maxwell
Yup, that's the one... cheers. J. On 1-Sep-08, at 8:48 AM, Greg Titus wrote: Hi James, It sounds like you want -subarrayWithRange: Hope this helps, - Greg On Sep 1, 2008, at 8:37 AM, James Maxwell wrote: Hello All, Is there an obj-C equivalent to Java's System.arraycopy() which

Re: array segment

2008-09-01 Thread Greg Titus
Hi James, It sounds like you want -subarrayWithRange: Hope this helps, - Greg On Sep 1, 2008, at 8:37 AM, James Maxwell wrote: Hello All, Is there an obj-C equivalent to Java's System.arraycopy() which will allow me to easily copy a segment of an NSArray into a new array? If so,

Re: array segment

2008-09-01 Thread Shawn Erickson
On Mon, Sep 1, 2008 at 8:37 AM, James Maxwell <[EMAIL PROTECTED]> wrote: > Hello All, > > Is there an obj-C equivalent to Java's System.arraycopy() which will allow > me to easily copy a segment of an NSArray into a new array? > > If so, a one-liner example would be very much appreciated. -[NSArra

array segment

2008-09-01 Thread James Maxwell
Hello All, Is there an obj-C equivalent to Java's System.arraycopy() which will allow me to easily copy a segment of an NSArray into a new array? If so, a one-liner example would be very much appreciated. I looked at -getObjects:range:, but I'm not sure if this is the right thing since it

Re: Problem with NSUserDefaultsController

2008-09-01 Thread Keary Suska
8/31/08 4:11 PM, also sprach [EMAIL PROTECTED]: >> I've been playing around with bindings to NSUserDefaultsController in >>> a very simple app to test saving preferences, but the >>> [sharedUserDefaultsController save:self] method seems to return immediately >>> without waiting for the save operat

Re: Code Example: FunTextField

2008-09-01 Thread Yung-Luen Lan
Ouch... You're right! Regards, yllan On Mon, Sep 1, 2008 at 5:12 PM, Uli Kusterer <[EMAIL PROTECTED]> wrote: > On 01.09.2008, at 10:23, Yung-Luen Lan wrote: >> >> (Thanks to Brad Cox's DrawKit.) > > > That would be Graham Cox. Brad Cox is someone else entirely :-) > > Cheers, > -- Uli Kusterer >

Re: how to delete the current user's directory?

2008-09-01 Thread Michael Ash
On Mon, Sep 1, 2008 at 6:46 AM, XiaoGang Li <[EMAIL PROTECTED]> wrote: > hi, list, I have an uninstaller application , which is used to delete > the files installed; and also i have a file which located in the current > user's directory, like the ~/Library/LaunchAgents/com..plist. and how >

Core Data: Instantiating linked entities

2008-09-01 Thread Renaud Céroce
Core Data: Instantiating linked entities Hi everyone, I have been searching the web for days now and I still have no answers to my questions which I thought were very basic in the use of Core Data. Sorry if this subject has already been addressed. Here is my (simplified) model: Shape

Finder Eject Button in OutlineView

2008-09-01 Thread kiran Sanka
I am trying to figure out how I might be able to do something like Finder does displaying disc Eject Image(When disc inserted) indicator as part of an outline item. I did by customizing NSTextField Cell as below - (void) drawWithFrame:(NSRect)inRect inView:(NSView *)inView { // First

Mapping SyncServices properties to CoreData properties

2008-09-01 Thread Clinton Shaw
I have a CoreData application that I would like to use with Sync Services to sync with Address Book (using the com.apple.contacts.Contact schema). I have got everything working when using properties from com.apple.contacts.Contact that have no spaces in the name (such as 'nickname'). The

Re: Image in NSOutlineView

2008-09-01 Thread chaitanya pandit
As per the initial description of your problem, you just want to change the image of the cell when it is clicked(selected) right? If thats the case then you don't have to deal with checking the image name etc. neither u have to do the setImage stuff in outlineviewSelectionDidChange What you

Re: Help!

2008-09-01 Thread Joshua Pennington
On Sep 1, 2008, at 4:38 AM, Michael Robinson wrote: I need to use a NSTableView to control data input by the user. The table has two columns, labeled "Title" and "Content". The number of columns is fixed. I understand (from assorted hints I've seen online) that one may use a NSDictionar

Re: I know this is a Studio question .. but I really need some help

2008-09-01 Thread John Love
Please check out this link that I just this second found: http://lists.apple.com/archives/applescript-studio/2008/Aug/msg2.html .. and I just confirmed what this link stipulates .. nothing to do with length: end script on -- crash after the space following "on" John Love __

QTCaptureConnectionEnabledAudioChannelsAttribute read only

2008-09-01 Thread Bram Loogman
Hi, Currently I'm working with a DV camera to capture video using the QTCapture class. Now I have a problem with processing the audio. When I check the movie properties of the recorded movie in Quicktime it tells me it contains 4 audio channels, 2 of them 'unused'. Now the problem is that the movi

Re: Increasing NSTextView's height

2008-09-01 Thread Graham Cox
On 1 Sep 2008, at 7:52 pm, chaitanya pandit wrote: But even if i change the textView's frame by increasing it's height so that it occupies the bottom most subview, i don't see the vertical scroller. Am i missing something? NSTextView doesn't have a vertical scroller on its own. If you put

how to delete the current user's directory?

2008-09-01 Thread XiaoGang Li
hi, list, I have an uninstaller application , which is used to delete the files installed; and also i have a file which located in the current user's directory, like the ~/Library/LaunchAgents/com..plist. and how can i delete this kind of file, i have tried the AuthorizationExecuteWithPrivi

Increasing NSTextView's height

2008-09-01 Thread chaitanya pandit
In my application, i want to increase the height of the NSTextView in order to make it's subview's visible. The subview's exceed further down the area occupied by the text. But even if i change the textView's frame by increasing it's height so that it occupies the bottom most subview, i don'

Help!

2008-09-01 Thread Michael Robinson
Hi I need to use a NSTableView to control data input by the user. The table has two columns, labeled "Title" and "Content". The number of columns is fixed. I've read what I can find on the internet, but a lot of it goes way over my head (I'm fairly new at ObjC and xCode -- coming from J

Re: Code Example: FunTextField

2008-09-01 Thread Uli Kusterer
On 01.09.2008, at 10:23, Yung-Luen Lan wrote: (Thanks to Brad Cox's DrawKit.) That would be Graham Cox. Brad Cox is someone else entirely :-) Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de ___ Coc

Re: Image in NSOutlineView

2008-09-01 Thread chaitanya pandit
The right place to change the image of the cell would be in the outlineView's delegate method: - (void)outlineView:(NSOutlineView *)outlineView willDisplayCell: (id)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item try [[cell image] name] to get the name of the image -chaitanya

Code Example: FunTextField

2008-09-01 Thread Yung-Luen Lan
FunTextField is provided as an example of NSTextInput protocol. Moreover, it also shows how to lay text along arbitrary path. (Thanks to Brad Cox's DrawKit.) Download: http://yllan.org/code/ What is FunTextField: http://yllan.org/blog/archives/285 My article on NSTextInput: http://yllan.org/blog