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 nothing

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 means [[foo

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 above

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:@Play];

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

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)

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

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

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

@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:

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

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

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

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: 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: 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

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

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

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, because

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

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

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

[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

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: -

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

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

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.,

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

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

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: 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

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

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 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: 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

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

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

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

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

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

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

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