Re: Cannot Debug

2008-02-28 Thread perego
This is just a wild guess, but in the past, when I used to swap my projects between computers by means of a zip drive, sometimes such weird things happened. In my case, I was usually able to restore everything to normality by applying one of these procedures: 1- discarding the build folder and com

best time to alter GUIs

2008-02-28 Thread Daniel Child
I am trying to understand the interrelationship between various method calls made once a window controller is instantiated. I am loading a window controller from within a master controller. Data passed from the master controller to the window controller is used to programmatically alter the

Re: Photo Booth Green Screen Effect

2008-02-28 Thread Sam McDonald
http://developer.apple.com/documentation/GraphicsImaging/Conceptual/QuartzComposer/qc_intro/chapter_1_section_1.html Sam McDonald Trimonix [EMAIL PROTECTED] On Feb 28, 2008, at 10:32 PM, Bridger Maxwell wrote: Hey, Is it possible to use the Photo Booth "green screen"/chroma key effect in a C

Photo Booth Green Screen Effect

2008-02-28 Thread Bridger Maxwell
Hey, Is it possible to use the Photo Booth "green screen"/chroma key effect in a Cocoa application? Can it be accessed from Quartz Composer? I searched around on the internet for a while, and couldn't find anything, so a head start would be helpful. I am a new programmer, so unless there is an ex

Fwd: TextEdit-speed file loading

2008-02-28 Thread Steven Degutis
I've manually set that to YES using IB3, and it did make a significant difference in loading time, pretty close to the near-instant time of TextEdit. However, when I try to scroll through the NSTextView using the scroll bar, it often becomes unresponsive. I'm assuming this is because only at th

Re: TextEdit-speed file loading

2008-02-28 Thread Ali Ozer
TextEdit calls -[NSLayoutManager setAllowsNonContiguousLayout:YES]; could that be it? Ali On Feb 28, 2008, at 20:06 , Steven Degutis wrote: I have a large (ascii) text file, about 65 MB, which TextEdit loads instantaneously in about a split second. I've tried to mimic this behavior using NST

TextEdit-speed file loading

2008-02-28 Thread Steven Degutis
I have a large (ascii) text file, about 65 MB, which TextEdit loads instantaneously in about a split second. I've tried to mimic this behavior using NSTextView to no avail. The problem isn't about unresponsiveness, because it's completely responsive during this loading of the large text file. The p

Re: CATextLayer metrics

2008-02-28 Thread Bill Dudney
Hi Karl, Have you tried the preferredFrameSize method? I have had success in doing simple text sizing with this method ( by simple i mean that i've done labels and such). It won't tell you the # of lines but it will give you a frame size. HTH, -bd- http://bill.dudney.net/roller/objc On

Re: Charting API?

2008-02-28 Thread Sean Murphy
On Feb 27, 2008, at 2:14 PM, Chris Schmitt wrote: I want to add some simple bar graphs and pie charts to my project. Is there an apple api for charting or do you need to use a 3rd party product? Regarding the Google Charting API that was mentioned, you can take simpler route and avoid th

NSXMLDocument xsi:noNamespaceSchemaLocation attribute accepted in validateAndReturnError method?

2008-02-28 Thread Richard Wolf
Hi guys, kind of a funky question ... not a crisis or anything, but I was curious if anyone knows ... or if this is a bug. I am happy to radar away if it's a bug. I actually Googled "NSXMLDocument xsi:noNamespaceSchemaLocation" and it comes up a bust ... zero hits. :) So I thought I wou

Re: Reading word at mouse pointer w/o Universal Access

2008-02-28 Thread Andreas Monitzer
On Feb 29, 2008, at 02:33, Ryan Homer wrote: Let me clarify that it doesn't seem to be the Dictionary application that's reading the word at the mouse pointer but rather the OS itself or some daemon, perhaps, when Ctrl-Option-D is pressed. It might be the process called DictionaryPanel tha

Re: Cannot Debug

2008-02-28 Thread Sam McDonald
He was on a Macbook Pro and I was on a Macbook. We went to a mac lab at my college and tried it on different computers to see what would happen. We assumed that my computer was the weird one. We tried it on iMacs and Power Macs and every single one had the same bug I was experiencing.

Re: Cannot Debug

2008-02-28 Thread Philip Bridson
Just a question. Were you both developing on the exact same systems? I.E MacBooks, same clock speed etc? I just find it odd that if you both had the same code that the error would be on one machine not the other. Especially that it would persist after a full restore and work on one and not

Re: Cannot Debug

2008-02-28 Thread Philip Bridson
Another solution that I know works, because i've done it a few times, is to start a new project and import all your files from your old project into the new one. I don't know why it works but it does. I always put it down to something I was doing wrong to be honest and generally that is wha

Re: Reading word at mouse pointer w/o Universal Access

2008-02-28 Thread Steve Christensen
I don't have specific knowledge but, yes, I would expect that the dictionary support is a trusted part of the OS, thus can be hooked into every application. As far as I know, if you want to touch another application's UI, you have to go through accessibility. From the OS's point of view you

Re: Cannot Debug

2008-02-28 Thread Sam McDonald
I had this exact problem. And the crazy thing was that my partner was running the same code and his computer wasn't affected. I re- installed my developer tools, and it didn't fix it. I re-installed my operating system, and still nothing was fixed. Finally, the other developer and myself

Re: Reading word at mouse pointer w/o Universal Access

2008-02-28 Thread Ryan Homer
Let me clarify that it doesn't seem to be the Dictionary application that's reading the word at the mouse pointer but rather the OS itself or some daemon, perhaps, when Ctrl-Option-D is pressed. It might be the process called DictionaryPanel that seems to always be running. Anyway, if anyo

Reading word at mouse pointer w/o Universal Access

2008-02-28 Thread Ryan Homer
I've read this post (http://lists.apple.com/archives/accessibility-dev/2006/Aug/msg7.html ) about using the accessibility options to read the text under the cursor. However, this requires that the user enable access for assistive devices in System Preferences. The application must theref

Re: Cannot Debug

2008-02-28 Thread Philip Bridson
I can't tell you why it happened but it happened to me a few weeks ago using XC 2.4.1 on Tiger 10.4.11. I couldn't solve it so I uninstalled the entire Developer folder & Tools then re-installed and now it works fine. Phil. On 29 Feb 2008, at 00:31, Steve Cronin wrote: Folks; This is XC

Re: NSTableView

2008-02-28 Thread Kyle Sluder
On Thu, Feb 28, 2008 at 7:55 PM, Jeremy <[EMAIL PROTECTED]> wrote: > OK. Now with connecting it in IB it stills seems to be not working. I > have made those changes that you said and nick also stated. :) But I > am still getting a blank NSTableView. If those changes make it so that > my code SHO

Re: NSTableView

2008-02-28 Thread Jeremy
OK. Now with connecting it in IB it stills seems to be not working. I have made those changes that you said and nick also stated. :) But I am still getting a blank NSTableView. If those changes make it so that my code SHOULD work, I have no Idea why it isn't working... If you would like a c

Re: NSTableView

2008-02-28 Thread Andrew Merenbach
Hi, Jeremy, You appear to have a few corrections that need to be made with your code. To resolve these will help you on your way. You should make the following changes before you try to get things working: 1. Remove the extraneous retain from your categoriesArray instantiation -- -alloc

Re: NSTableView

2008-02-28 Thread Jeremy
Thanks about the memory leaks and about the allocating memory and stuff. And I thought that might be my problem but I am not sure how to actually use that method. The documentation was very vague in my opinion. Jeremy "For a long time it puzzled me how something so expensive, so leading e

Re: NSTableView

2008-02-28 Thread Nick Zitzmann
On Feb 28, 2008, at 5:41 PM, Jeremy wrote: In awakeFromNib: categoriesArray = [[[NSMutableArray alloc] init] retain]; Here you're over-retaining an NSArray. This won't do anything if you're using GC, but if you're not, then you've created a memory leak. NSString *string;

Re: NSTableView

2008-02-28 Thread Jeremy
This is how I am attempting to do it... In awakeFromNib: categoriesArray = [[[NSMutableArray alloc] init] retain]; NSString *string; string = [NSString init]; string = @"Main Category"; [categoriesArray addObject:string]; [categories selectRow:1 by

Re: NSTableView

2008-02-28 Thread Hamish Allan
On Fri, Feb 29, 2008 at 12:34 AM, Jeremy <[EMAIL PROTECTED]> wrote: > I am trying to figure NSTableViews out. I have two table views inside > of my window. The code I have is completely useless and not working. > Can anyone explain how to populate an NSTableView using arrays? If you > could th

NSTableView

2008-02-28 Thread Jeremy
Hello, I am trying to figure NSTableViews out. I have two table views inside of my window. The code I have is completely useless and not working. Can anyone explain how to populate an NSTableView using arrays? If you could that would be greatly appreciated. Jeremy "For a long time it puzz

Cannot Debug

2008-02-28 Thread Steve Cronin
Folks; This is XC2.4.1 on Tiger 10.4.11. (been at this level since 10.4.11) no recent system level changes. I'm doing Cocoa application development and all things are proceeding normally when suddenly I can no longer run the debugger. I have pretty stringent build rules but I get a good cl

Re: NSLocalizedStringFromTable

2008-02-28 Thread Philip Bridson
Thanks thats exactly what I needed to know. Thanks for your help. Phil. On 28 Feb 2008, at 23:39, Douglas Davidson wrote: On Feb 28, 2008, at 3:32 PM, Philip Bridson wrote: Just a short question. I'm working with localizations and I get the whole concept of strings files etc but do I have

Re: NSLocalizedStringFromTable

2008-02-28 Thread Douglas Davidson
On Feb 28, 2008, at 3:32 PM, Philip Bridson wrote: Just a short question. I'm working with localizations and I get the whole concept of strings files etc but do I have to create a file with english values in it? For instance my french one is: "Yes" = "Oui" But do I have to create a engli

NSLocalizedStringFromTable

2008-02-28 Thread Philip Bridson
Hi there, Just a short question. I'm working with localizations and I get the whole concept of strings files etc but do I have to create a file with english values in it? For instance my french one is: "Yes" = "Oui" But do I have to create a english one with: "Yes" = "Yes" or will cocoa

Re: Does performSelectorOnMainThread: preserve order?

2008-02-28 Thread Hamish Allan
On Thu, Feb 28, 2008 at 10:48 PM, Kyle Sluder <[EMAIL PROTECTED]> wrote: > The documentation explicitly describes -[NSObject > performSelectorOnMainThread:withObject:waitUntilDone:] as queueing and > dequeueing selectors on the main thread. It seems reasonable to > assume they're not outright

Re: iChat Theatre

2008-02-28 Thread Mark Alldritt
Hi, On 27-Feb-08, at 11:32 AM, infinite labs wrote: On Wed, Feb 27, 2008 at 7:47 PM, Mark Alldritt <[EMAIL PROTECTED] > wrote: Hi Folks, I've been trying to get a simple demo app running that uses iChat Theatre (InstantMessage.framework) as described in this web page without any success: h

Re: Does performSelectorOnMainThread: preserve order?

2008-02-28 Thread Kyle Sluder
On Thu, Feb 28, 2008 at 5:31 PM, Hamish Allan <[EMAIL PROTECTED]> wrote: > > However, there is no equivalent promise in Apple's documentation for > NSObject; it is conspicuous in its absence. Can anyone confirm or deny > that it has the same behaviour as in GNUstep? The documentation explicitly

Does performSelectorOnMainThread: preserve order?

2008-02-28 Thread Hamish Allan
Hi, The GNUstep documentation for the NSObject(NSMainThreadPerformAdditions) category states the following for performSelectorOnMainThread: withObject: waitUntilDone: modes: "Where this method has been called more than once before the runloop of the main thread runs in the required mode [i.e., wi

Re: Drag and drop single cell in a table/matrix

2008-02-28 Thread Corbin Dunn
Override: - (NSImage *)dragImageForRowsWithIndexes:(NSIndexSet *)dragRows tableColumns:(NSArray *)tableColumns event:(NSEvent*)dragEvent offset: (NSPointPointer)dragImageOffset limit the columns passed based on the column at the event's location. The rest is up to your delegate/datasource

Re: Drawing from secondary thread erases resize corner in window?

2008-02-28 Thread Ron Fleckner
On 29/02/2008, at 8:31 AM, Nate Weaver wrote: On Feb 28, 2008, at 3:18 PM, Hank Heijink wrote: On Feb 28, 2008, at 2:56 PM, Nate Weaver wrote: Interesting... I hadn't thought of that. Don't I have to add another timer to the NSDefaultRunLoopMode though? If I have to chose between having

Drag and drop single cell in a table/matrix

2008-02-28 Thread Dan Waltin
Hi all, The short question is: how do I drag'n'drop single cells in an NSTableView (or NSOutlineView). I.e. I don't want the entire row to be dragged, just one cell. Is there any example code on how to do this? Or is there anyone who might push me in the right direction? Is tableView:sh

Re: Drawing from secondary thread erases resize corner in window?

2008-02-28 Thread Hamish Allan
On Thu, Feb 28, 2008 at 9:18 PM, Hank Heijink <[EMAIL PROTECTED]> wrote: > That's not my experience. If I just add a timer for the > NSEventTrackingRunLoopMode, the only time that timer fires is when the > run loop is in event tracking mode, which is what I would expect. In > the NSDefaultRunL

Re: Drawing from secondary thread erases resize corner in window?

2008-02-28 Thread Nate Weaver
On Feb 28, 2008, at 3:18 PM, Hank Heijink wrote: On Feb 28, 2008, at 2:56 PM, Nate Weaver wrote: Interesting... I hadn't thought of that. Don't I have to add another timer to the NSDefaultRunLoopMode though? If I have to chose between having two timers on the main thread that alternate,

Re: removeFrameUsingName: doesn't?

2008-02-28 Thread Quincey Morris
On Feb 28, 2008, at 12:25, Mike Fischer wrote: OK, nobody answered so I did a further test: ... Then I relaunched the app, used the IBAction to remove the Auto Save Name and quit the app again. The key was still there! So it's a bug in AppKit/Cocoa it seems. NSWindow -removeFrameUsingName:

Re: Drawing from secondary thread erases resize corner in window?

2008-02-28 Thread Hank Heijink
On Feb 28, 2008, at 2:56 PM, Nate Weaver wrote: Interesting... I hadn't thought of that. Don't I have to add another timer to the NSDefaultRunLoopMode though? If I have to chose between having two timers on the main thread that alternate, or one on a secondary thread, I think I'll go with

Re: Table views with different NSArrayControllers sharing the same data object...

2008-02-28 Thread Quincey Morris
On Feb 28, 2008, at 12:19, Keith Blount wrote: I have a feeling I'm approaching this all wrong, given that now I'm trying to bind my DataList object's -backgroundColor to the view's backgroundColor so that changes to the background colour in one view will automatically update in the other,

Re: RTF pasting as plain text in NSTextView in some cases

2008-02-28 Thread Vince
Thanks Kyle, It is RTF-editable. I created the NSTextView object manually because of other needs in the program. It had been working properly for sometime, but I did some extensive improvements during the last couple of months; but this part of the code should have been unaffected. I did

Re: Charting API?

2008-02-28 Thread Barry Wark
One other library worth keeping an eye on is QWT (http://qwt.sourceforge.net/). It's a very impressive 2D and 3D plotting library for Trolltech's qt. There is a qt for mac, but it's Carbon based so I don't think it's practical to use QWT with Cocoa, but Trolltech is investigating migrating Qt-Mac t

re: Endless Hang on Saving a Core Data Document

2008-02-28 Thread Ben Trumbull
Andrew, There's a known issue on the current Leopard using NSPersistentDocument with an SQLite store under Garbage Collection. Change any one of the 3 pieces in that configuration and things will work fine. We will be addressing the issue. -- -Ben ___

Re: Setting iTunes album art with ScriptingBridge

2008-02-28 Thread Dave Verwer
Thanks for the reply, I eventually solved this by resorting back to AppleScript for the artwork stuff, ugly but it works... As for posting source to the list, thanks for the tip. Some lists frown upon it so I have been using Pastie but I will paste small code samples inline from now on. Cheers Da

Re: removeFrameUsingName: doesn't?

2008-02-28 Thread Mike Fischer
OK, nobody answered so I did a further test: I created a new Cocoa application project, modified the nib so that the Window had an Auto Save Name "xyz" and then added an AppControler class with a single IBAction and connected it up. The IBAction looks like this: - (IBAction)handleDeleteAu

CATextLayer metrics

2008-02-28 Thread Karl Goiser
Hello Cocoa people, With traditional Cocoa text drawing, it is possible to determine the size of a piece of text ahead of time with methods like NSString's sizeWithAttributes: or with NSCell's cellSizeForBounds:. These methods allow the determination of the width of some text, or the num

Re: Table views with different NSArrayControllers sharing the same data object...

2008-02-28 Thread Keith Blount
Many thanks for your replies, Adam and Quincey, much appreciated. By placing the methods in my model object rather than in my view object (I was kind of using the view as both view and controller), I now have both tables updating with objects getting inserted and edited. Great - thank you! I'm

Re: - outlineView:willDisplayCell:forTableColumn:item: and selected item

2008-02-28 Thread Corbin Dunn
On Feb 26, 2008, at 10:21 PM, Seth Willits wrote: On Feb 26, 2008, at 3:13 PM, John Stiles wrote: Trying to simulate the drawing behavior of NSCell seems error-prone to me. Since I don't have access to the original code, it would be hard to match its behavior. I'd much rather inherit as muc

Re: Drawing from secondary thread erases resize corner in window? [solved, for now]

2008-02-28 Thread Nate Weaver
On Feb 28, 2008, at 1:49 PM, Hank Heijink wrote: On Feb 28, 2008, at 1:46 PM, Nate Weaver wrote: You could also use [[NSRunLoop mainRunLoop] addTimer:yourTimer forMode:NSEventTrackingRunLoopMode] and avoid another thread altogether. Interesting... I hadn't thought of that. Don't I have

Re: cascading windows in document architecture

2008-02-28 Thread Kyle Sluder
On Mon, Feb 25, 2008 at 12:19 PM, Jacob Lukas <[EMAIL PROTECTED]> wrote: > I had this problem as well. The fix for me was to not show the window > during awakeFromNib, but rather let the window be cascaded and shown > automatically. It seems that if the window is already visible before > it has

Re: Drawing from secondary thread erases resize corner in window? [solved, for now]

2008-02-28 Thread Hank Heijink
On Feb 28, 2008, at 1:46 PM, Nate Weaver wrote: You could also use [[NSRunLoop mainRunLoop] addTimer:yourTimer forMode:NSEventTrackingRunLoopMode] and avoid another thread altogether. Interesting... I hadn't thought of that. Don't I have to add another timer to the NSDefaultRunLoopMode

Re: RTF pasting as plain text in NSTextView in some cases

2008-02-28 Thread Kyle Sluder
On Thu, Feb 28, 2008 at 11:32 AM, Vince <[EMAIL PROTECTED]> wrote: > Hi, > > My NSTextView has strange behavior when pasting: The rich text is > pasted as plain text when the material has been copied from Safari. > When the same material has been copied from another NSTextView (e.g., > TextEdit

Re: Binding to a controller in a different nib

2008-02-28 Thread Kyle Sluder
On Thu, Feb 28, 2008 at 12:47 PM, Randall Meadows <[EMAIL PROTECTED]> wrote: > Please help me extend my understanding of bindings...I grasp the > simple stuff, but not yet to an extent to be able to apply that to > complex situations. > > In my main window (which resides in it's own nib, and is

[Moderator] List guidelines and a quick reminder

2008-02-28 Thread Scott Anguish
I wanted to point out that lately the vast majority of admin work has been rejecting messages that are larger than the 25K limit. In most cases these are either large chunks of source, entire projects (345Mb!!), or untrimmed HTML messages. Please keep your messages under 25k and in plain t

Re: Very strange issue of using IKImageView in a multi-document application

2008-02-28 Thread Quincey Morris
On Feb 28, 2008, at 14:26, Scott.D.R wrote: However, I dragged a IKImageView into the document window, builded the application and go. Then I clicked the menu->File->New, there was no new window appear. Really very odd... After delete the IKImageView on the document window, the menu->File-

Re: Drawing from secondary thread erases resize corner in window? [solved, for now]

2008-02-28 Thread Nate Weaver
the only reason I'm trying to draw on another thread is that my drawing is timer-driven, and the timer gets suspended if it's on the main thread and the user clicks on a menu or a scrollbar or some such thing. You could also use [[NSRunLoop mainRunLoop] addTimer:yourTimer forMode:NSEventTracki

Re: Table views with different NSArrayControllers sharing the same data object...

2008-02-28 Thread Quincey Morris
On Feb 28, 2008, at 02:46, Keith Blount wrote: Many thanks for your reply. I have a model object and a view object - DataList and DataListView. DataList has a -content array. The DataListView has an array controller whose contentArray is bound to the DataList's content array. Given that it

Re: Using NSTask to start ssh tunnel

2008-02-28 Thread Steve Mills
On Feb 28, 2008, at 12:31:03, A.M. wrote: There is no shell string interpolation with NSTask, so try [arguments addObject: @"-o"]; [arguments addObject: @"ServerAliveInterval 180"]; Well that was easy! I thought I'd tried that before, but probably not exactly that way, beca

Re: Binding to a controller in a different nib

2008-02-28 Thread Randall Meadows
Responding to my own post, for clarification... On Feb 28, 2008, at 10:47 AM, Randall Meadows wrote: In my main window (which resides in it's own nib, and is controlled by a custom window controller), I have a combobox. I'd like to populate the contents of that via bindings. In my main ni

Using NSTask to start ssh tunnel

2008-02-28 Thread Steve Mills
I have the source code for SSH Tunnel Manager, which we use to create a tunnel to our home office in another state. Something has changed recently, either with our home office's servers, my ISP, or 10.5.x is doing something differently than 10.4.x. The result is that the first time I do som

Re: complex views in a tableview

2008-02-28 Thread j o a r
On Feb 27, 2008, at 11:13 PM, Sean McBride wrote: I haven't used NSCollectionView but I have read about it. It seems to be geared towards grids more than lists. I'm looking to have a table with 2 resizable columns: the first a simple string, the second my 'complex view'. I'm not sure I could

Can someone send me the MoreAuthSample?

2008-02-28 Thread Apple Cocoa List
I am looking for a copy of the MoreAuthSample. Yes, I know it has been replaced with BetterAuthorizationSample. I don't want to start a flame war on how to perform a task as root. I just want the old sample and it looks like it's been pulled down from Apple's site. If you have it, send it t

Binding to a controller in a different nib

2008-02-28 Thread Randall Meadows
Please help me extend my understanding of bindings...I grasp the simple stuff, but not yet to an extent to be able to apply that to complex situations. In my main window (which resides in it's own nib, and is controlled by a custom window controller), I have a combobox. I'd like to populat

Re: Drawing from secondary thread erases resize corner in window? [solved, for now]

2008-02-28 Thread Hank Heijink
I haven't found out what I need to do to avoid drawing over the resize corner on a secondary thread. There's something that the system does when it calls drawRect: as a result of a call to setNeedsDisplayInRect: that I can't reproduce. I'm pretty sure it's not a multithreading issue, but si

Re: Combining NSLineBreakByWordWrapping + NSLineBreakByTruncatingTail in NSTextView

2008-02-28 Thread Aki Inoue
Starting from Leopard, you can do -[NSCell setTruncatesLastVisibleLine:] or pass NSStringDrawingTruncatesLastVisibleLine to -[NSString drawWithRect:options:attributes:]. We don't have out-of-box support for NSTextView. If you feel there should be support in NSTextView, please file a bug.

Re: Combining NSLineBreakByWordWrapping + NSLineBreakByTruncatingTail in NSTextView

2008-02-28 Thread John Stiles
I don't know the answer, but if you figure it out, please post a followup on Cocoa-Dev. I could use this also :) Mattias Arrelid wrote: Hi there. Occasionally I need to display some very long strings. These string can have sentences that would span several lines depending on the width of my

Re: Drawing from secondary thread erases resize corner in window?

2008-02-28 Thread Hamish Allan
On Thu, Feb 28, 2008 at 1:30 AM, Chris Suter <[EMAIL PROTECTED]> wrote: > I suspect the problem with the resize corner is because it's drawn by > the framework and the code that draws in the background is overwriting > it. I'm not sure how you solve that. Assuming you're drawing on a secondary

RTF pasting as plain text in NSTextView in some cases

2008-02-28 Thread Vince
Hi, My NSTextView has strange behavior when pasting: The rich text is pasted as plain text when the material has been copied from Safari. When the same material has been copied from another NSTextView (e.g., TextEdit), it pastes properly as RTF. I checked my pasteboard type at the end of

Re: Charting API?

2008-02-28 Thread David Hoerl
> On Wed, Feb 27, 2008 at 2:14 PM, Chris Schmitt <[EMAIL PROTECTED]> wrote: I want to add some simple bar graphs and pie charts to my project. Is there an apple api for charting or do you need to use a 3rd party product? I've been using Chartdirector: http://www.advsofteng.com/ Not C

Re: @property and messages

2008-02-28 Thread Adam P Jenkins
On Feb 28, 2008, at 9:57 AM, Jamie Phelps wrote: By now, most of you know I'm working through Aaron Hillegass's book. Along the way, I'm trying to utilize Objective-C 2.0 constructs where I am aware of differences. Hillegass is using explicitly declared setters and getters. I am using @pro

Re: Table views with different NSArrayControllers sharing the same data object...

2008-02-28 Thread Adam P Jenkins
On Feb 28, 2008, at 5:46 AM, Keith Blount wrote: Many thanks for your reply. I have a model object and a view object - DataList and DataListView. DataList has a -content array. The DataListView has an array controller whose contentArray is bound to the DataList's content array. Given that i

Re: Value binding not updating on text field

2008-02-28 Thread Jeff Nouwen
Keith Duncan wrote on Thursday, February 28, 2008 8:01 am: > Typically you'd bind the text field to the underlying value, the > same value the slider is bound to. Is there a reason you want to > do it this way? Whoops, yes you're right, I was ignoring a basic tenet of MVC. I had wired it up that

Re: Value binding not updating on text field

2008-02-28 Thread Keith Duncan
The Value of the text field is bound to [...] "slider.floatValue" Typically you'd bind the text field to the underlying value, the same value the slider is bound to. Is there a reason you want to do it this way? I think you'll find that NSProgressIndicator isn't KVO compliant for the float

@property and messages

2008-02-28 Thread Jamie Phelps
By now, most of you know I'm working through Aaron Hillegass's book. Along the way, I'm trying to utilize Objective-C 2.0 constructs where I am aware of differences. Hillegass is using explicitly declared setters and getters. I am using @property and @synthesize. In his - (void)setString: me

Combining NSLineBreakByWordWrapping + NSLineBreakByTruncatingTail in NSTextView

2008-02-28 Thread Mattias Arrelid
Hi there. Occasionally I need to display some very long strings. These string can have sentences that would span several lines depending on the width of my NSTextView. Example of such texts: "This is the first line which spans over to the second line and then it stops. This is another l

Value binding not updating on text field

2008-02-28 Thread Jeff Nouwen
Hi all, I have an NSSlider and NSTextField in a window. The Value of the text field is bound to the instance of my controller in the nib with a key path of "slider.floatValue". slider is an instance variable of the controller and the outlets are set correctly (confirmed through NSLog'ing

Very strange issue of using IKImageView in a multi-document application

2008-02-28 Thread Scott.D.R
Hi everyone. As the topic described, I came across this issue when using a IKImageView in a multi-document application. At first, I created a sample multi-document application using the xcode starter template "cocoa multi-document application". Without adding a line of code, build the appl

DO, rootProxy, and garbage collection

2008-02-28 Thread John Pannell
Hi all- I have a small existing app that I've chosen to rewrite for my next release, primarily as an exercise in adopting Leopard and ObjC 2.0 technologies. This includes the use of garbage collection. Part of this app's design involves the use of distributed objects to communicate betwe

Spaces bugs with floating windows...

2008-02-28 Thread Gregory Weston
I've got an app whose interface exists entirely in a single floating window and I'm sure a few other people have noticed that Spaces has issues with tools in that category. The most prominent failure is that setting an app to appear in all spaces doesn't "just work" but someone on (I think)

Re: Table views with different NSArrayControllers sharing the same data object...

2008-02-28 Thread Keith Blount
Many thanks for your reply. I have a model object and a view object - DataList and DataListView. DataList has a -content array. The DataListView has an array controller whose contentArray is bound to the DataList's content array. Given that it is the view that observes the model, I have implemen

Re: NSButton setStringValue

2008-02-28 Thread Ron Fleckner
On 28/02/2008, at 8:15 PM, ali alavi wrote: I am trying to change the title of a push button after each click (eg: to swap between "Play" and "Pause") I am using this code: if(m_isPlaying) { [myButton setStringValue:@"Play"]; m_isPlaying = 0; } else { [myButton setStringValue

Re: NSButton setStringValue

2008-02-28 Thread Apparao Mulpuri
You can use setAlternativeTitle method - Apparao. On 2/28/08, ali alavi <[EMAIL PROTECTED]> wrote: > > I am trying to change the title of a push button after each click (eg: to > swap between "Play" and "Pause") > > I am using this code: > > if(m_isPlaying) > { >[myButton setStringValue:@"P

Re: Charting API?

2008-02-28 Thread Dix Lorenz
On Wed, Feb 27, 2008 at 2:14 PM, Chris Schmitt <[EMAIL PROTECTED]> wrote: I want to add some simple bar graphs and pie charts to my project. Is there an apple api for charting or do you need to use a 3rd party product? I've been using Chartdirector: http://www.advsofteng.com/ Not Cocoa, b

NSButton setStringValue

2008-02-28 Thread ali alavi
I am trying to change the title of a push button after each click (eg: to swap between "Play" and "Pause") I am using this code: if(m_isPlaying) { [myButton setStringValue:@"Play"]; m_isPlaying = 0; } else { [myButton setStringValue:@"Pause"]; m_isPlaying = 1; } None of abov

Re: Custom cell with Bindings having strange prints in NSTableView

2008-02-28 Thread Kyle Sluder
On Wed, Feb 27, 2008 at 8:55 AM, Miguel Coxo <[EMAIL PROTECTED]> wrote: > Hello, i have a binding setup in IB like this: > > http://mt15.quickshareit.com/share/picture1f06b0.png > > where the cellData is a function in the class CPDownload: > > - (id) cellData > { > return self; > } This mean

Re: Spotlight Importer

2008-02-28 Thread Gerriet M. Denkmann
From: "Sean McBride" <[EMAIL PROTECTED]> On 2/26/08 12:45 AM, Quincey Morris said: On Feb 26, 2008, at 00:16, Gerriet M. Denkmann wrote: I have an application (10.4.11) which creates simple text files (utf-8 or utf-16). When I store some document as "myNewFile" then Spotlight does know nothin