The 'Open with' option is automatically changed with my app when my app is installed

2011-03-02 Thread Deepa
Hi, I am developing an Desktop application which organizes and plays movie files. So, I have added the mp4, mov, avi, m4v (mp4, mov, avi, m4v extensions) as document type under Properties of my application target. The problem is that when the user installs my app in Applications folder of his s

Re: Where to find the IOS SDK 3.0

2011-03-02 Thread Conrad Shultz
Just use the latest SDK and target 3.0 for your base SDK. Or do you need it for some other reason? -Conrad On Mar 2, 2011, at 17:29, kuku zhang wrote: > I want to use this version(3.0)iphone's sdk .but I can't find it yet,thank > for any reply! > __

Troubles with NSTokenField delegate methods

2011-03-02 Thread Максим Семенов
Начало переадресованного сообщения: > От: Максим Семенов > Дата: 2 марта 2011 г. 11:12:51 GMT+05:00 > Кому: cocoa-dev@lists.apple.com > Тема: NSTokenField delegate methods > > Hi everyone, > > I have some troubles with NSTokenField delegate methods. > > In Apple's "Token Field Programming Gu

Where to find the IOS SDK 3.0

2011-03-02 Thread kuku zhang
I want to use this version(3.0)iphone's sdk .but I can't find it yet,thank for any reply! ___ 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 cocoa-dev-adm

Unit testing on a bundle

2011-03-02 Thread Don Hosek
I'm trying to set up unit tests on a bundle, but when I do cmd-B in TokenizerTest.m (the file with my unit tests in it), It's coming back with ld: symbol(s) not found where it's not able to see symbols from my main bundle. How should I be configuring things so that this works properly? -dh ___

Issue with NSthread

2011-03-02 Thread Aman (neshu) Agarwal
Hello, I am new with COCOA API, I am trying to call function from other class via object but it's not call it delegate after completion of the procedure while when I call it on main thread delegate will execute but I am not able to catch up the data :'( [NSThread detachNewThreadSelector:@sel

table view and custom cell optimization problem

2011-03-02 Thread Nick Rogers
Hi, I have a table view with the custom cell class assigned to its only column in awakeFromNib method using setDataCell:. Then I'm doing some drawing in drawInteriorWithFrame: of the NSCell subclass. The problem is that drawing include four lines of text and an image and a few lines using NSBezie

Truncating start and end of attributed string to show desired range.

2011-03-02 Thread Kenneth Baxter
Hi, I'm displaying search results in an outine view, and want to show the portion of the text where the search term was found, by truncating both the start and end of the string (where necessary) so that the result is visible in the displayed portion of the string. I can see how to truncate at

Re: Editing a list of NSMutableStrings

2011-03-02 Thread Joanna Carter
Hi Corbin Long time no speak!! The last time we met in person, was when Borland paid for us (TeamB) to come out to Scotts Valley. > Delphi developers may not have heard of it, but they do it by accident. They > place all of their controller code in a TForm subclass; rarely do they do > somethi

Getting Playlist title for a specific media collection (iOS)

2011-03-02 Thread Roger Dalal
Hello List: I am struggling to find a way to determine the title of a specific playlist selected within MPMediaPickerController. For example, if the user chooses to "Add All Songs" from the "My Top Rated" playlist using the MPMediaPicker, I need to get the "My Top Rated" title. I can't run a qu

Re: Customizing the drop highlight on a NSTableView

2011-03-02 Thread Corbin Dunn
On Mar 2, 2011, at 2:39 PM, John Terranova wrote: > > On Mar 2, 2011, at 1:58 PM, Corbin Dunn wrote: > >> >> On Mar 2, 2011, at 1:54 PM, Quincey Morris wrote: >> >>> On Mar 2, 2011, at 13:04, Eric Gorr wrote: >>> I am using the 10.5 SDK, so don't have access to -setDraggingDestina

Re: Editing a list of NSMutableStrings

2011-03-02 Thread Corbin Dunn
On Mar 2, 2011, at 1:44 PM, Joanna Carter wrote: > Hi Quincey > > Many thanks for taking the time to look at this issue. > >> This has come up at least once before, and the approach you're using was >> suggested. I think it has some academic interest, but I'm not sure that it's >> of great us

Re: Customizing the drop highlight on a NSTableView

2011-03-02 Thread John Terranova
On Mar 2, 2011, at 1:58 PM, Corbin Dunn wrote: > > On Mar 2, 2011, at 1:54 PM, Quincey Morris wrote: > >> On Mar 2, 2011, at 13:04, Eric Gorr wrote: >> >>> I am using the 10.5 SDK, so don't have access to >>> -setDraggingDestinationFeedbackStyle: >>> >>> What are my options for customizing t

Re: Editing a list of NSMutableStrings

2011-03-02 Thread Joanna Carter
Hi Quincey > Use 'will/didChange:valuesAtIndexes:forKey:'. Now how did I miss that? :-) The trouble is, when you have spent years learning Delphi's VCL, then even more years learning the.NET libraries, the brain starts to get a bit crammed :-) Joanna -- Joanna Carter Carter Consulting __

Re: Editing a list of NSMutableStrings

2011-03-02 Thread Quincey Morris
> Hmmm, yes I did realise the difference in terminology but… it works!!! Would > it be sufficient to simply use will/didChangeValueForKey, without the set > mutation part, to prompt the NSArrayController to update itself? Use 'will/didChange:valuesAtIndexes:forKey:'. __

Re: Customizing the drop highlight on a NSTableView

2011-03-02 Thread Corbin Dunn
On Mar 2, 2011, at 1:54 PM, Quincey Morris wrote: > On Mar 2, 2011, at 13:04, Eric Gorr wrote: > >> I am using the 10.5 SDK, so don't have access to >> -setDraggingDestinationFeedbackStyle: >> >> What are my options for customizing the drop highlighting for a NSTableView? >> >> The highlighti

Re: Customizing the drop highlight on a NSTableView

2011-03-02 Thread Quincey Morris
On Mar 2, 2011, at 13:04, Eric Gorr wrote: > I am using the 10.5 SDK, so don't have access to > -setDraggingDestinationFeedbackStyle: > > What are my options for customizing the drop highlighting for a NSTableView? > > The highlighting I want is for it to draw the drop indicator between rows an

Re: Customizing the drop highlight on a NSTableView

2011-03-02 Thread Corbin Dunn
On Mar 2, 2011, at 1:04 PM, Eric Gorr wrote: > I found this old thread: > > http://lists.apple.com/archives/cocoa-dev/2005/Jun/msg01922.html > > which talks about overriding the private method: > > _drawDropHighlightOnRow: > > Now, I tried this out, and while the method does get called, it no

Re: Editing a list of NSMutableStrings

2011-03-02 Thread Joanna Carter
Hi Quincey Many thanks for taking the time to look at this issue. > This has come up at least once before, and the approach you're using was > suggested. I think it has some academic interest, but I'm not sure that it's > of great use in practical applications. I would agree that it is not som

Re: UIView animation (backgroundColor) + drawRect:

2011-03-02 Thread David Duncan
On Mar 2, 2011, at 5:12 AM, Roland King wrote: > I was trying to animate the backgroundColor of one of my UIView subclasses > yesterday using > > [ UIView animateWithDuration:2.0 animations:^{ [ myView > setBackgroundColor:someColor ]; } ]; > > but no matter what the duration set, the b

Customizing the drop highlight on a NSTableView

2011-03-02 Thread Eric Gorr
I found this old thread: http://lists.apple.com/archives/cocoa-dev/2005/Jun/msg01922.html which talks about overriding the private method: _drawDropHighlightOnRow: Now, I tried this out, and while the method does get called, it no longer appears to control the drop highlight of a row. I am us

Re: Editing a list of NSMutableStrings

2011-03-02 Thread Quincey Morris
On Mar 2, 2011, at 02:32, Joanna Carter wrote: > I started by using the NSTableView, together with its delegate methods to > supply the list of strings, but what my friend was really after was a way of > using NSArrayController to supply the list of strings. This would also allow > me to use th

NSBrowser & column resizing

2011-03-02 Thread Scott Ribe
I need to implement a custom control, which would look very much like an NSBrowser with a "header row" above each column which would have 1 or 2 controls per column. It seems like a custom view that embeds an NSBrowser would be a good starting point. But I'd want my header row cell to resize alo

Re: Outlets Not Connected In awakeFromNib

2011-03-02 Thread Andreas Grosam
On Mar 2, 2011, at 4:05 PM, Scott Ribe wrote: > On Mar 2, 2011, at 2:54 AM, Andreas Grosam wrote: > >> Reading the documentation carefully, I don't expect awakeFromNib to be sent >> to a file's owner when not all of its outlets have been properly connected. > > It isn't. I'd guess maybe you

Re: UIView animation (backgroundColor) + drawRect:

2011-03-02 Thread Andreas Grosam
On Mar 2, 2011, at 2:12 PM, Roland King wrote: > I was trying to animate the backgroundColor of one of my UIView subclasses > yesterday using > > [ UIView animateWithDuration:2.0 animations:^{ [ myView > setBackgroundColor:someColor ]; } ]; > > but no matter what the duration set, the

Re: Outlets Not Connected In awakeFromNib

2011-03-02 Thread glenn andreas
On Mar 2, 2011, at 3:54 AM, Andreas Grosam wrote: > I have a very basic custom UIViewController with its own associated nib file. > This view controller is the "root view controller" of a Navigation Controller > which is itself embedded within a Split View Controller which is defined in > anot

Re: Outlets Not Connected In awakeFromNib

2011-03-02 Thread Scott Ribe
On Mar 2, 2011, at 2:54 AM, Andreas Grosam wrote: > Reading the documentation carefully, I don't expect awakeFromNib to be sent > to a file's owner when not all of its outlets have been properly connected. It isn't. I'd guess maybe you have two root view controllers, file's owner, and a secon

UIView animation (backgroundColor) + drawRect:

2011-03-02 Thread Roland King
I was trying to animate the backgroundColor of one of my UIView subclasses yesterday using [ UIView animateWithDuration:2.0 animations:^{ [ myView setBackgroundColor:someColor ]; } ]; but no matter what the duration set, the background color was changing instantly. Whilst looking to s

Re: animating addSubview with iOS4

2011-03-02 Thread Andreas Grosam
On Mar 2, 2011, at 12:42 PM, Andreas Grosam wrote: > - (void) viewDidLoad { >[super viewDidLoad]; > >// Create the button: >// ... > >[self performSelector:@selector(addButtonWithAnimation) withObject:nil > afterDelay:0.0]; > } or - possibly more efficient: - (void)viewDidLoa

Re: animating addSubview with iOS4

2011-03-02 Thread Andreas Grosam
On Mar 2, 2011, at 11:37 AM, Robert Vojta wrote: > I meant viewWillAppear/viewDidAppear, not disappear ... Sry ... This might not work also. If the boolean parameter 'animation' in viewWillAppear equals NO, no animation will be started. This is especially true when the view will appear immediat

Re: InterfaceBuilder - send action to self?

2011-03-02 Thread Jonathan Taylor
Thanks Wayne, that makes sense. It's still frustrating that I can't send actions to the originating control, but I can see why what you're suggesting is more like the "right" way of doing this! Cheers Jonny On 2 Mar 2011, at 10:32, Wayne Packard wrote: > Hi Jonathan, > > I think the more commo

NSImageView - position in image coordinates

2011-03-02 Thread Jonathan Taylor
Is there an easy way of determining where the user has clicked in an image displayed in an NSImageView? This strikes me as a reasonable thing to want to do, but I can't work out how. When I get the mouseDown event in my NSImageView subclass, I can call: thisMousePoint = [self convertPoin

Re: animating addSubview with iOS4

2011-03-02 Thread Robert Vojta
I meant viewWillAppear/viewDidAppear, not disappear ... Sry ... Sent from my iPhone On 2.3.2011, at 11:36, Robert Vojta wrote: > That's because viewDidLoad doesn't mean it's going to be displayed now. It > just informs you that view was loaded. You have to use > viewWillAppear/viewWillDisappe

Re: animating addSubview with iOS4

2011-03-02 Thread Robert Vojta
That's because viewDidLoad doesn't mean it's going to be displayed now. It just informs you that view was loaded. You have to use viewWillAppear/viewWillDisappear or any other method where you know that view is visible = you'll see animations. Sent from my iPhone On 2.3.2011, at 10:44, Martin

Editing a list of NSMutableStrings

2011-03-02 Thread Joanna Carter
Hi folks This all started with a friend who wanted to emulate the Delphi concept of being able to "simply" add a "list box" to a form and add strings to it in the designer. So, because I understand and teach separation of UI from data and, because Xcode beautifully supports MVC, I decided to p

Re: InterfaceBuilder - send action to self?

2011-03-02 Thread Wayne Packard
Hi Jonathan, I think the more common way of doing this would be to have a controller class that has outlets for the text fields and an action for the button. Wire them up in IB. In the action handler for the button press, get and set the values in the text fields. If you have multiple button

InterfaceBuilder - send action to self?

2011-03-02 Thread Jonathan Taylor
It seems that InterfaceBuilder won't let me wire up my custom control to send an action to itself. This suggests to me that I am going the wrong way about what I am trying to do, or missing something really obvious. Can anybody advise? My window has a number of text fields. One represents the cu

Outlets Not Connected In awakeFromNib

2011-03-02 Thread Andreas Grosam
I have a very basic custom UIViewController with its own associated nib file. This view controller is the "root view controller" of a Navigation Controller which is itself embedded within a Split View Controller which is defined in another nib - say the main.nib. Within IB this root view contro

Re: animating addSubview with iOS4

2011-03-02 Thread Martin Linklater
Thanks Luke I did manage to find a solution. I was creating and calling the transition from within 'viewDidLoad'. If I move the call to 'transitionWithView' out of 'viewDidLoad' and into a different method the transition works fine. Animating properties work when called from 'viewDidLoad', but

NSArrayController or NSTreeController?

2011-03-02 Thread Kenneth Baxter
Hi, I'm working on implementing a search capability in my application. Each result will have a category and subcategory associated with it, as well as the actual result data. Separate from this, I will know what order I want the categories and subcategories sorted in at the time, and can popula