Buy music on iTunes

2015-06-15 Thread Viacheslav Karamov
Hi all, Is it possible to buy music on iTunes store from my iOS app? Could you please point me to the way how can I achieve this? Thanks, Viacheslav. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Buy music on iTunes

2015-06-15 Thread Viacheslav Karamov
Are you sure? I learned that I could achieve it by using SKStoreProductViewController, but I need the way to not use it. 15.06.15 15:48, Maxthon Chan wrote: You cannot do this directly, but you can, via opening a link using -[UIApplication openURL:], to direct the user to iTunes Music Store

Re: Language options: Objective-C, Swift, C or C++?

2015-06-15 Thread Charles Jenkins
I may have misinterpreted the WWDC ’14 announcement of Swift. Somehow I got the impression Swift was supposed to make Mac programming easier and more fun. What I found was that with Cocoa, it makes easy stuff harder without making the hard stuff the slightest bit easier. (In the case of string

Re: Buy music on iTunes

2015-06-15 Thread Maxthon Chan
You cannot do this directly, but you can, via opening a link using -[UIApplication openURL:], to direct the user to iTunes Music Store app to but the song. Remember that iTunes Music Store is not available in every country and region. On Jun 15, 2015, at 20:37, Viacheslav Karamov

description method question

2015-06-15 Thread Dave
Hi, I’ve added the description method to my class, (please see methods below), but when the String is logged, I get this: LTWBufferIndex: - Length: 1\n0: 1\n-\n, LTWBufferIndex: - Length: 5\n0: 1\n1: 2\n2: 3\n3: 4\n4: 5\n-\n”, e.g. the newlines are not interpreted as such. Is

Re: Menu Bar App: [NSStatusItem popUpStatusItem] : Menu shows popupmenu too high

2015-06-15 Thread Jerry Krinock
On 2015 Jun 13, at 13:24, Dan Stenning d0stenn...@msn.com wrote: thanks for the reply but i’m afraid that suggestion didn’t work either :( I think what you need to do then is to get yourself some Apple sample code that works, compare it line-by-line with yours and figure out what you’re

Re: Buy music on iTunes

2015-06-15 Thread Kyle Sluder
On Mon, Jun 15, 2015, at 08:27 AM, Viacheslav Karamov wrote: Are you sure? I learned that I could achieve it by using SKStoreProductViewController, but I need the way to not use it. You _must_ use SKStoreProductViewController for purchases. This is how the system protects against apps that

Re: description method question

2015-06-15 Thread Dave
Found it! Just use \r, I did a searched again and found, not sure why I didn’t get any useful results last time. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: Goodbye and Thanks for All The Code

2015-06-15 Thread danchik
Wish you all the luck in your new endeavors! On Jun 15, 2015, at 8:23 PM, Michael David Crawford mdcrawf...@gmail.com wrote: I've been out of work for most of the last five years. Many well-meaning yet sadly misinformed people give me what doubtlessly would be good advice for others,

Goodbye and Thanks for All The Code

2015-06-15 Thread Michael David Crawford
I've been out of work for most of the last five years. Many well-meaning yet sadly misinformed people give me what doubtlessly would be good advice for others, for example that I should go on disability, get into subsidized housing or to stop linking my essays about my mental illness from every

Analyzer Problem??

2015-06-15 Thread Dave
Hi All, Please take a look at the method below and look for the // *** comments +(void) selfTest { LTWIndexBuffer* myIndexBuffer1; LTWIndexBuffer* myIndexBuffer2; LTWIndexBuffer*

Re: Language options: Objective-C, Swift, C or C++?

2015-06-15 Thread Charles Jenkins
Jens, I agree with what you say, but for the record, there was no sarcasm in my message. I was speaking very literally about what I thought I heard in the WWDC ’14 intro versus what I encountered when I began using it. -- Charles On Monday, June 15, 2015 at 13:50, Jens Alfke wrote:

Re: Language options: Objective-C, Swift, C or C++?

2015-06-15 Thread Dave
Hi, The way I look at it, if you learn Objective-C, you’ll be able to pick up Swift quite easily, but I don’t think the opposite is true. Also it depends if you want to learn how the system hangs together at a low level, then Objective-C makes it easier. I can’t imagine learning Swift without

Re: Language options: Objective-C, Swift, C or C++?

2015-06-15 Thread Jens Alfke
On Jun 15, 2015, at 5:30 AM, Charles Jenkins cejw...@gmail.com wrote: I may have misinterpreted the WWDC ’14 announcement of Swift. Somehow I got the impression Swift was supposed to make Mac programming easier and more fun. Can we pleease stay away from sarcasm in this thread.

Re: Language options: Objective-C, Swift, C or C++?

2015-06-15 Thread Carl Hoefs
Consider: If you were tasked to choose a language for a project based only on a features list, you'd still have no assurances the language would be appropriate for the project or that you would be able to accomplish the project in a timely manner. Features do not equate to usability or

Re: [Swift] best way to support 'keyword' args, symbolic values, show values as literals?

2015-06-15 Thread Quincey Morris
On Jun 15, 2015, at 10:17 , has hengist.p...@virgin.net wrote: the goal is to enable a user to print an object specifier and be able to copy-and-paste that straight into another script - i.e. `-description` should always return a string that represents valid Swift code I dunno about #1 or

[Swift] best way to support 'keyword' args, symbolic values, show values as literals?

2015-06-15 Thread has
Hi folks, Some of the old uns here might remember that many years ago I wrote a nice little library named appscript which allowed you to control AppleScriptable applications from Python/Ruby/ObjC (and, unlike the alternatives, actually didn't suck), allowing you to write code like this

NSWindow child window and key status

2015-06-15 Thread Ben
Hi list, I'm trying to replicate a portion of UI in a manner similar to the formula editor of Numbers. For those not familiar, its a widget that floats above the spreadsheet grid featuring a text view and a button or two. Currently I am using the addChildWindow:ordered: method on NSWindow to

Re: Language options: Objective-C, Swift, C or C++?

2015-06-15 Thread Sean McBride
On Fri, 12 Jun 2015 23:51:42 -0700, Britt Durbrow said: Swift is too immature to warrant doing anything serious with it yet… I've stayed away from it for that reason basically. When Xcode x+1 can't even compile code that builds in Xcode x, I'm not too interested (except for toy projects).

Re: NSFontPanel for a modal window

2015-06-15 Thread Kurt Sutter
Yes, you are right. The actual showing of the font panel occurs by calling NSFontManager* shrdFontMgr = [NSFontManager sharedFontManager]; [shrdFontMgr orderFrontFontPanel:textView]; This shows the font panel, but does not make it active. When I click into a new font of that

Re: NSWindow child window and key status

2015-06-15 Thread Quincey Morris
On Jun 15, 2015, at 13:38 , Ben ben_cocoa_dev_l...@yahoo.co.uk wrote: I'm trying to replicate a portion of UI in a manner similar to the formula editor of Numbers. For those not familiar, its a widget that floats above the spreadsheet grid featuring a text view and a button or two.

Re: Language options: Objective-C, Swift, C or C++?

2015-06-15 Thread Maxthon Chan
The only feature in Swift that is useful for me so far is its ability to be executed like a script using its REPL feature. And to use it I need Swift being open source. Things will go off topic beyond this point. I always had an Objective-C Web framework (not a WebObjects revival, but a more