How to get from the Itunes App Store application information

2011-10-18 Thread 吴明
How to get top five from the Itunes App Store application information. Were to be paid and free. ___ 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

iCloud Problem

2011-10-18 Thread Gerriet M. Denkmann
This might not be the right list to ask this question, but could someone tell me where to ask it? Registering for iCloud Apple tells me that an eMail has been sent to ... But no eMail has arrived (yes, I checked the Junk folder as well). And sending a test eMail to the same address works fine.

start HLS live stream from beginning of sliding window

2011-10-18 Thread Johan Rydberg
Hi, Not sure there's a better forum for this, but here goes: Is there a way to instruct the iOS movie player to start playing a live HLS stream from the beginning of the window instead of at the end? The scenario is this: we have an event, where we want to keep the content around for later use.

Re: Blocks vs. life, the universe and everything

2011-10-18 Thread Michael Babin
On Oct 17, 2011, at 2:49 PM, Greg Parker wrote: On Oct 15, 2011, at 12:28 PM, Jean-Daniel Dupas wrote: Le 15 oct. 2011 à 21:10, Seth Willits a écrit : Unrelated, when did @autoreleasepool pop in? I don't remember if I knew about that or not. It's _used_ once in the Obj-C Programming

Re: 'Static' items in an NSOutlineView

2011-10-18 Thread Koen van der Drift
On Tue, Oct 18, 2011 at 12:19 AM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Oct 17, 2011, at 19:58 , Koen van der Drift wrote: What it should look like is: LIBRARY (static) Group1 Group2 FAVORITES (static) Group3 Group4 RECENT (static) You've missed something

Re: Keeping grayscale image grayscale

2011-10-18 Thread Jonathan Taylor
Belated thanks for the various replies to my question. I'm working through the posted code and links now and looking at what I can learn from it. One query though: On 12 Oct 2011, at 16:42, Heinrich Giesen wrote: Another rule of thumb is: if you need -[NSImage TIFFRepresentation] you do

Re: How to get from the Itunes App Store application information

2011-10-18 Thread Eric E. Dolecki
http://www.apple.com/rss/ Enjoy :) 2011/10/18 吴明 wuminghui...@163.com How to get top five from the Itunes App Store application information. Were to be paid and free. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Blocks vs. life, the universe and everything

2011-10-18 Thread Jean-Daniel Dupas
Le 18 oct. 2011 à 14:00, Michael Babin a écrit : On Oct 17, 2011, at 2:49 PM, Greg Parker wrote: On Oct 15, 2011, at 12:28 PM, Jean-Daniel Dupas wrote: Le 15 oct. 2011 à 21:10, Seth Willits a écrit : Unrelated, when did @autoreleasepool pop in? I don't remember if I knew about that or

Re: preventing bad memory access

2011-10-18 Thread Scott Ribe
On Oct 17, 2011, at 10:26 PM, Wilker wrote: NSData *fileData = [NSData dataWithContentsOfFile:path options:NSDataReadingMappedAlways | NSDataReadingUncached error:error]; Do you retain fileData? -- Scott Ribe scott_r...@elevated-dev.com http://www.elevated-dev.com/ (303) 722-0567 voice

Re: Blocks vs. life, the universe and everything

2011-10-18 Thread Michael Babin
On Oct 18, 2011, at 8:42 AM, Jean-Daniel Dupas wrote: Le 18 oct. 2011 à 14:00, Michael Babin a écrit : What are the minimum requirements for using @autoreleasepool? The same as ARC, even when not used with ARC (Xcode 4.2 for Mac OS X v10.6 and v10.7 (64-bit applications) and for iOS 4

Re: Blocks vs. life, the universe and everything

2011-10-18 Thread Jean-Daniel Dupas
Le 18 oct. 2011 à 16:09, Michael Babin a écrit : On Oct 18, 2011, at 8:42 AM, Jean-Daniel Dupas wrote: Le 18 oct. 2011 à 14:00, Michael Babin a écrit : What are the minimum requirements for using @autoreleasepool? The same as ARC, even when not used with ARC (Xcode 4.2 for Mac OS X

Re: preventing bad memory access

2011-10-18 Thread Jens Alfke
On Oct 17, 2011, at 9:26 PM, Wilker wrote: I wanna it mapped always and uncached because I don't wanna read the entire file, just some pieces of it (small pieces), so, if the user is acessing a file from an external drive, and the file has 8gb, I only wanna read 64kb, so, I don't wanna read

Custom NSArrayController that manages its own array?

2011-10-18 Thread Jens Alfke
To help bind my data model to AppKit tables, I’ve written a custom class that implements KVC collection accessors to define a mutable-array property. That is, it implements methods like -countOfEntries, objectInEntriesAtIndex:, insertObject:inEntriesAtIndex, etc. I can then bind this as the

Re: IBOutlet getter/setter pattern question

2011-10-18 Thread Matt Neuburg
On Sun, 16 Oct 2011 13:53:05 -0700, Eeyore eey...@monsterworks.com said: I noticed that I many of my IBOutlets were only being used to modify the view from the viewDidLoad methods but which were not accessed later in my code. These outlets exist so that I can keep consistent appearance settings

Re: IBOutlet getter/setter pattern question

2011-10-18 Thread Eeyore
Thanks Matt, was kind of hoping you would provide some insight (your responses to others have been helpful). Very ingenious, but doesn't it leave a lot of stuff lying around that is just an accident waiting to happen? You are assuming that setLabel: will be called only by the nib-loading

Re: Launching 10.5 app on 10.4

2011-10-18 Thread Tim Schröder
I don't think there is one. If the build settings are correct, OS X won't start the application but will display an error message. Tim Am 18.10.2011 um 20:37 schrieb livinginlosange...@mac.com: What is the canonical method of alerting a user that an application is built for a newer

Re: Launching 10.5 app on 10.4

2011-10-18 Thread Patrick Cusack
Ok, so it will warn the user? I had an experience where the application wouldn't launch and no alert panel would open. Thanks, patrick On Oct 18, 2011, at 11:39 AM, Tim Schröder wrote: I don't think there is one. If the build settings are correct, OS X won't start the application but will

Re: Custom NSArrayController that manages its own array?

2011-10-18 Thread Keary Suska
On Oct 18, 2011, at 11:44 AM, Jens Alfke wrote: To help bind my data model to AppKit tables, I’ve written a custom class that implements KVC collection accessors to define a mutable-array property. That is, it implements methods like -countOfEntries, objectInEntriesAtIndex:,

Re: Custom NSArrayController that manages its own array?

2011-10-18 Thread Quincey Morris
On Oct 18, 2011, at 10:44 , Jens Alfke wrote: To help bind my data model to AppKit tables, I’ve written a custom class that implements KVC collection accessors to define a mutable-array property. That is, it implements methods like -countOfEntries, objectInEntriesAtIndex:,

Re: 'Static' items in an NSOutlineView

2011-10-18 Thread Quincey Morris
On Oct 18, 2011, at 05:20 , Koen van der Drift wrote: when my app starts the first time, I would like to have the outline view be prepopulated with a few groups: LIBRARY, FAVORITES, RECENT and maybe Group1 (a child of LIBRARY). I did all that, but did not add Group1 to be a child of LIBRARY,

Re: Launching 10.5 app on 10.4

2011-10-18 Thread Charles Srstka
On Oct 18, 2011, at 1:55 PM, Patrick Cusack wrote: Ok, so it will warn the user? I had an experience where the application wouldn't launch and no alert panel would open. Thanks, patrick On Oct 18, 2011, at 11:39 AM, Tim Schröder wrote: I don't think there is one. If the build

Re: Launching 10.5 app on 10.4

2011-10-18 Thread Nick Zitzmann
On Oct 18, 2011, at 12:37 PM, livinginlosange...@mac.com wrote: What is the canonical method of alerting a user that an application is built for a newer version of OSX? You need to set the LSMinimumSystemVersion or LSMinimumSystemVersionByArchitecture keys in your application's info.plist

Re: 'Static' items in an NSOutlineView

2011-10-18 Thread Koen van der Drift
On Tue, Oct 18, 2011 at 3:21 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: On Oct 18, 2011, at 05:20 , Koen van der Drift wrote: We're talking about Core Data, right? Objects in a Core Data persistent store have no intrinsic order, though they can be indexed on one of their

Re: How to get key code from SysDefined Carbon Event

2011-10-18 Thread James Walker
On 10/18/2011 1:00 PM, Jerry Krinock wrote: I've registered a handler for global hot keys with the Carbon Event Manager, using InstallEventHandler(). However, I'd like the user to be able to specify *two* different global hot key functions. Thus, in my callback/handler, I need the key code and

Re: Blocks vs. life, the universe and everything

2011-10-18 Thread Greg Parker
On Oct 18, 2011, at 6:42 AM, Jean-Daniel Dupas wrote: Le 18 oct. 2011 à 14:00, Michael Babin a écrit : On Oct 17, 2011, at 2:49 PM, Greg Parker wrote: @autoreleasepool also works without ARC. It's faster than NSAutoreleasePool. Use it. What are the minimum requirements for using

Getting weekday name from weekday number?

2011-10-18 Thread Rick Mann
Hi. Given a day-of-week number, what's the best way to get the abbreviated name of that weekday? I've tried using NSDateComponents in various ways (stand-alone, building off the current date, etc.) to get at it (by using NSDateFormatter on the resulting date), but none seem to work. Basically,

Re: Getting weekday name from weekday number?

2011-10-18 Thread Dave DeLong
Quick idea off the top of my head: Ask an NSDateFormatter for its shortWeekdaySymbols (returns an NSArray of NSStrings) and index into that with your weekday number. Other than that, the correct way to do this is to construct an NSDate with the appropriate weekday and then use a date format of

Source list groups hidden by default

2011-10-18 Thread David Catmull
I have a source list in my window - an NSOutlineView where my delegate returns YES for outlineView:isGroupItem: for certain items. In 10.7, group items now have a Show/Hide button that appears on mouse-over. The complication is that for some reason my groups are hidden by default. I can expand

Re: Custom NSArrayController that manages its own array?

2011-10-18 Thread Jens Alfke
On Oct 18, 2011, at 11:59 AM, Keary Suska wrote: In your subclass you could use the machinery afforded by automaticallyPreparesContent, or simply set the content on awakeFromNib or whenever it is needed. Hm. So in other words I would implement the KVC methods in the subclass

Re: Getting weekday name from weekday number?

2011-10-18 Thread Rick Mann
On Oct 18, 2011, at 15:21 , Dave DeLong wrote: Quick idea off the top of my head: Ask an NSDateFormatter for its shortWeekdaySymbols (returns an NSArray of NSStrings) and index into that with your weekday number. That seems to work. Thanks! -- Rick Other than that, the correct way

Re: Custom NSArrayController that manages its own array?

2011-10-18 Thread Keary Suska
On Oct 18, 2011, at 5:16 PM, Jens Alfke wrote: On Oct 18, 2011, at 11:59 AM, Keary Suska wrote: In your subclass you could use the machinery afforded by automaticallyPreparesContent, or simply set the content on awakeFromNib or whenever it is needed. Hm. So in other words I would

Re: Custom NSArrayController that manages its own array?

2011-10-18 Thread Quincey Morris
On Oct 18, 2011, at 17:01 , Keary Suska wrote: When dealing with collections even the best of us forget that in the MVC approach the model for the NSArrayController is the array itself, and not the object that contains it. The key and the collection KVC methods are simply a way to acquire

Re: How to get key code from SysDefined Carbon Event

2011-10-18 Thread Jerry Krinock
On 2011 Oct 18, at 13:22, James Walker wrote: The only documented parameter in the kEventClassKeyboard / kEventHotKeyPressed Carbon Event is kEventParamDirectObject (in, typeEventHotKeyID) The ID of the hot key that was pressed. That's the ID that was passed to

Re: How to get key code from SysDefined Carbon Event

2011-10-18 Thread Ken Thomases
On Oct 18, 2011, at 11:21 PM, Jerry Krinock wrote: P.S. typeEventHotKeyID should be eventTypeHotKeyID Should in what sense? It's a type indicator, that's why it starts with type. The type it is conveying in this case is EventHotKeyID, the type of your hotKeyID parameter (and of the value