Re: How to create a popup panel like Safari 6 downloads?

2013-04-27 Thread Nick
Thanks Jens, that's exactly what i needed 2013/4/27 Jens Alfke > > On Apr 27, 2013, at 1:46 PM, Nick wrote: > > Are there some examples available on how to make windows (pop up panels?) > like shown these screenshots?: > > > I think you want to use NSPopover. There is sample code, if you look

Re: fast enumeration

2013-04-27 Thread Boyd Collier
Excellent! Thanks very much for pointing this out. Boyd On Apr 27, 2013, at 11:21 AM, Jens Alfke wrote: > > On Apr 27, 2013, at 11:11 AM, Boyd Collier wrote: > >> NSEnumerator *myEnumerator = [arrayOfLabels objectEnumerator]; >> NSString *aString = [myEnumerator nextObject]; // g

Re: How to create a popup panel like Safari 6 downloads?

2013-04-27 Thread Jens Alfke
On Apr 27, 2013, at 1:46 PM, Nick wrote: > Are there some examples available on how to make windows (pop up panels?) > like shown these screenshots?: I think you want to use NSPopover. There is sample code, if you look in the Xcode documentation viewer. —Jens _

How to create a popup panel like Safari 6 downloads?

2013-04-27 Thread Nick
Hi Are there some examples available on how to make windows (pop up panels?) like shown these screenshots?: http://rghost.net/45605051/image.png http://rghost.net/45605062/image.png It seems like a lot of modern apps are using this style.. Thank you __

Re: fast enumeration

2013-04-27 Thread Jens Alfke
On Apr 27, 2013, at 11:11 AM, Boyd Collier wrote: > NSEnumerator *myEnumerator = [arrayOfLabels objectEnumerator]; > NSString *aString = [myEnumerator nextObject]; // gets us past the > first element > NSLog(@"the label is %@", aString); // just to check; > doesn

fast enumeration

2013-04-27 Thread Boyd Collier
I have an array of NSStrings that in some circumstances, I'd like to go through using fast enumeration starting with the second element in the array. After a bit of fooling around, I came up with the following, which seems to work: NSEnumerator *myEnumerator = [arrayOfLabels

Re: Can I determine who is calling a delegate

2013-04-27 Thread Eric Slosser
Is your object also a NSComboBoxDataSource? The message you're getting is a member of that protocol. On Apr 26, 2013, at 8:18 PM, livinginlosange...@mac.com wrote: > I have an object that is an NSComboBox delegate. ___ Cocoa-dev mailing list (Coco