Re: Adding tabs programaticaly (solved)?

2011-03-22 Thread Vyacheslav Karamov
21-Mar-11 16:08, Vyacheslav Karamov пишет: Hi All! I'm writing IB 3.2 plug-in for NSTabView descendant. After adding new tab CLTabViewItem * item = [[CLTabViewItem alloc] init]; [item setLabel: @new Item]; [tabView addTabViewItem: item]; I'm trying to

Re: Edit NSScrollView text

2011-03-22 Thread Ulf Dunkel
on XCode version 3 I was able to launch IB and edit the text of a NSScrollView. On XCode 4 I can't. And even if I modify this text, which is saved within the file MainMenu.nib/keyedobjects.nib when I relaunch XCode 4 and open my project file, the change doesn't show up. I always see the old text.

Re: MPMoviePlayerController setContentURL twice

2011-03-22 Thread Heath Borders
Your code worked! Thanks! The main difference between our snippets was that you added the MPMoviePlayerController's view directly to the UIViewController's view rather than putting it in a holder view (which I doubt would matter) and that you aren't using the embedded controls. I'll post back

Re: MPMoviePlayerController setContentURL twice

2011-03-22 Thread Heath Borders
I was able to replicate my issue. In my original code, I was only allowing the movie to be played with the embedded controls. When I set the contentURL a second time, my embedded controls were not showing, so I couldn't play the movie again. As I mentioned previously, Matt's code worked great.

Re: Error reporting in Cocoa (was Re: Exception not being caught)

2011-03-22 Thread A.M.
On Mar 21, 2011, at 10:24 PM, Chris Hanson wrote: Ultimately, the solution will be to modify HessianKit -- or any other framework that presents an RPC-style interface[1] -- to follow the Cocoa convention of returning BOOL (or a non-nil/nil object reference) to indicate success or failure,

Re: Adding tabs programaticaly?

2011-03-22 Thread Kyle Sluder
On Tue, Mar 22, 2011 at 1:22 AM, Vyacheslav Karamov ubuntul...@yandex.ru wrote: I have no idea how to do this. http://bugreport.apple.com Also, please post on the Xcode 4 Developer Forums. http://devforums.apple.com --Kyle Sluder ___ Cocoa-dev

Re: Error reporting in Cocoa (was Re: Exception not being caught)

2011-03-22 Thread Kyle Sluder
On Tue, Mar 22, 2011 at 8:07 AM, A.M. age...@themactionfaction.com wrote: I am curious as to how you would propose to add error: handlers to DO calls considering that DO is meant to transparent and cannot modify method signatures. For example, assuming you were designing a new DO framework,

Re: NSTableColumn dataCellForRow:

2011-03-22 Thread William Weygandt
Thank you for the quick reply. Implementing 'tableView:willDisplayCell:forTableColumn:row:' is exactly what I needed. Just want to change cell attributes. I thought the only way to do this was to subclass 'dataCellForRow:', especially since it was 'pointed out' in the documentation.

(no subject)

2011-03-22 Thread Graham Cox
On 20/04/2009, at 5:01 PM, Joe Yi wrote: hello all:I have no way to get the app window 's coordinateapplewebdata://A2B49717-8F5F-4246-991B-60F9DC323717/;coordinate 。please show me the detail method. RTFD. [window frame]; --Graham___

(no subject)

2011-03-22 Thread Bright
Hi everyone: When I use QTMovie to play movies. I want to custom myself progress slider instead of the NSSlider. How to custom the progress slider? thks! Bright ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

(no subject)

2011-03-22 Thread David Duncan
Is the contentsScale property set correctly? For CALayers it defaults to 1.0, UIKit ensures that it is set correctly for layers that it creates, but it is your responsibility to do this for layers that you create yourself. -- David Duncan On Jul 11, 2010, at 4:03 PM, Carter Allen

Re: NSClassDescriptionNeededForClassNotification

2011-03-22 Thread René v Amerongen
Hi, I have never use it, and never look into this. Maybe a class method instead. Op 21 mrt 2011, om 09:45 heeft Kevin Bracey het volgende geschreven: Hi there, I hope that I could register class descriptions lazily, I like doing most things lazily. But I can't find where or how to

Changing tooltips in a custom view

2011-03-22 Thread Eric Gorr
I've got a sample project at: http://ericgorr.net/cocoadev/tooltip.zip What I would like to do is define a single tooltip rect for an entire view but be able to change the tooltip as the cursor moves inside of the view. Is there a way to do that? Is there a way to force it to hide the current

Re: design question

2011-03-22 Thread Quincey Morris
On Mar 22, 2011, at 16:53, Graham Cox wrote: That's because a) NSMutableArray IS a NSArray, and b) your method has told its clients it is returning an NSArray, so the client has no right to go any further than the methods of NSArray with that object, that is, it cannot make use of

Re: design question

2011-03-22 Thread Graham Cox
On 23/03/2011, at 11:58 AM, Quincey Morris wrote: 1b. The property is a to-many relationship. If #1a, then the return value should be unchangeable, in the sense that it should never change after being returned (regardless of whether the returned object is of a mutable class or not). That

NSOperation with unit test

2011-03-22 Thread Shane
Hi, I am trying to write a unit test for a class that inherits from NSOperation. And I've implemented this class just as I did in my application (which works) and the test case is running, but when the 'addOperation:myClass' on the NSOperationQueue is called within the test method, I don't see

Re: NSOperation with unit test

2011-03-22 Thread Heath Borders
Your NSOperation is probably running on a background thread managed by the NSOperationQueue. Your test needs to wait until the NSOperationQueue has processed all its tasks. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Tue, Mar 22, 2011 at