Re: Improving the User Experience for First Use of Downloadable Software

2010-02-25 Thread Charles Srstka
On Feb 25, 2010, at 11:40 PM, Steve Cronin wrote: > Folks; > > My Mac-based Cocoa application is now available as a free trial download from > the internet. > > The first time a user opens the software a warning is shown informing the > user that this software has never been used and was downl

Re: Embedding Custom NSView in NSScroller having strange effect on drawRect calls.

2010-02-25 Thread Michael Ash
On Thu, Feb 25, 2010 at 3:00 AM, Billy Flatman wrote: Hi all, I've written a custom view and done some optimisation of the drawing calls so only the exact areas that need redrawing are passed to the 'setNeedsDisplayInRect' function. All was working well, until

Re: Improving the User Experience for First Use of Downloadable Sof tware

2010-02-25 Thread Richard Penwell
What you are experancing is the setting of the q Quarintene xattr value.  This cannot be avoided, as how can the OS know that your application has no macious intent.  The best recomendation I can offer is provide a pkg installer instead as it  Steve Cronin wrote: Folks; My Mac-based Cocoa

Re: Improving the User Experience for First Use of Downloadable Software

2010-02-25 Thread Laurent Daudelin
On Feb 25, 2010, at 21:40, Steve Cronin wrote: > Folks; > > My Mac-based Cocoa application is now available as a free trial download from > the internet. > > The first time a user opens the software a warning is shown informing the > user that this software has never been used and was download

Improving the User Experience for First Use of Downloadable Software

2010-02-25 Thread Steve Cronin
Folks; My Mac-based Cocoa application is now available as a free trial download from the internet. The first time a user opens the software a warning is shown informing the user that this software has never been used and was downloaded from the internet -- thanks redmond =[:-( I understand

Re: Setting parent window

2010-02-25 Thread Eric Schlegel
On Feb 25, 2010, at 4:38 PM, Gaurav Srivastava wrote: > Basically I have a parent application from which I have to launch another > application. I want the child application to open as modal within the parent > application and not as a separate application. Mac OS X does not support window child

Re: [Moderator] List Guidelines

2010-02-25 Thread Scott Anguish
Sigh. All the documentation links for Apple Documentation in the document I just posted are likely out of date. The Apple Developer Connection’s Mac OS X Dev Center is the place to find documentation online http://developer.apple.com/ Sorry about that folks. _

Improving the User Experience when Installing a Snow Leopard Service

2010-02-25 Thread Steve Cronin
Folks; I'm a big fan of Snow Leopard's revised support for Services. In fact my application has a service that I would like most of my customers to use. What I have found from watching test subjects install my software is that many folks stumble on enabling the service. I understand that user n

[end of thread] Re: Looking for info on anti-piracy and trial-mode techniques for my app . . .

2010-02-25 Thread Scott Anguish
On Feb 24, 2010, at 4:54 PM, Michael A. Crawford wrote: > I've purchased apps from other developers on this forum, which have > mechanisms for limiting functionality until a valid registration code has > been provided. I'd like to include this functionality in my own app but > don't want to c

[Moderator] List Guidelines

2010-02-25 Thread Scott Anguish
New Posters === A reminder that people who post for the first time are moderated. Messages should be approved or rejected within 24 hours. Once it’s clear that the posts are on topic and not violating the rules, the moderation is cleared. If your messages are automatically rejected the

Setting parent window

2010-02-25 Thread Gaurav Srivastava
Is there any corresponding function call for ::SetParent(in Windows) in Cocoa? Basically I have a parent application from which I have to launch another application. I want the child application to open as modal within the parent application and not as a separate application. I have the window hand

Embedding Custom NSView in NSScroller having strange effect on drawRect calls.

2010-02-25 Thread Billy Flatman
>>> Hi all, >>> >>> I've written a custom view and done some optimisation of the drawing calls >>> so only the exact areas that need redrawing are passed to the >>> 'setNeedsDisplayInRect' function. >>> >>> All was working well, until I embedded my view into an NSScroller. >>> >>> Since then m

Re: [iPhone 3.1] Core Animation that leaves a trial?

2010-02-25 Thread Eric E. Dolecki
I don't know enough about the specifics, but could an image with a moving mask reveal the trail? Eric On Thu, Feb 25, 2010 at 8:32 PM, David Duncan wrote: > On Feb 25, 2010, at 4:55 PM, John Michael Zorko wrote: > > > I'm interested in having a CAKeyframeAnimation leave a "trail" i.e. > imagine

Re: @dynamic stupidity?

2010-02-25 Thread Greg Parker
On Feb 25, 2010, at 7:10 PM, William Squires wrote: > What exactly does @dynamic do? Specifically, in the context of a Core Data > managed-object? Here's what I do understand: > > 1) You create an 'entity' in the .xcdatamodel file > 2) You ask Xcode to create the class files for you > 3) The .m f

Re: @dynamic stupidity?

2010-02-25 Thread Dave Carrigan
On Feb 25, 2010, at 7:10 PM, William Squires wrote: > Why doesn't it just @synthesize the accessors? What would happen if I > replaced the @dynamic with @synthesize? Would it blow up, or just have weird > performance issues? @dynamic and @synthesize are completely different. @synthesize causes

@dynamic stupidity?

2010-02-25 Thread William Squires
What exactly does @dynamic do? Specifically, in the context of a Core Data managed-object? Here's what I do understand: 1) You create an 'entity' in the .xcdatamodel file 2) You ask Xcode to create the class files for you 3) The .m file contains @dynamic instead of @synthesize for each of the

Re: [iPhone 3.1] Core Animation that leaves a trial?

2010-02-25 Thread David Duncan
On Feb 25, 2010, at 4:55 PM, John Michael Zorko wrote: > I'm interested in having a CAKeyframeAnimation leave a "trail" i.e. imagine > the image of a pencil being animated across the screen -- I want to draw a > path of where the pencil has been along with the animated pencil. However, > i'm no

Re: Carbon is C++?

2010-02-25 Thread Jens Alfke
On Feb 25, 2010, at 4:08 PM, Greg Parker wrote: > Feel free to draw your own conclusions about Apple's future support for C++. What Greg said. Note that a lot of major big-ticket Mac apps contain large amounts of C++ code — Photoshop, MS Office, etc. Most cross-platform apps are C++ at their c

[iPhone 3.1] Core Animation that leaves a trial?

2010-02-25 Thread John Michael Zorko
Hello, all ... I'm interested in having a CAKeyframeAnimation leave a "trail" i.e. imagine the image of a pencil being animated across the screen -- I want to draw a path of where the pencil has been along with the animated pencil. However, i'm not sure how to do this, since Core Animation is

Re: Store more complex values into NSDictionary

2010-02-25 Thread Andrew Salamon
I've run into the need for something like this often enough that I just end up writing a simple container class that mimic's C++'s pair class. Something like this: #import @interface My_Pair : NSObject { id first; id second; } + (My_Pair *)pairWith:(id)_first and:(id)_secon

Re: Carbon is C++?

2010-02-25 Thread Greg Parker
On Feb 25, 2010, at 4:02 PM, Stephen J. Butler wrote: > Apple has deprecated libraries/frameworks. They haven't stopped > supporting any languages though. Pretty sure we don't provide any Pascal or HyperCard tools anymore. I forget whether we shipped gfortran at any point in Mac OS X. In any ca

Re: Carbon is C++?

2010-02-25 Thread Sherm Pendley
On Thu, Feb 25, 2010 at 7:02 PM, Stephen J. Butler wrote: > > Apple has deprecated libraries/frameworks. They haven't stopped > supporting any languages though. I'm pretty sure they no longer support Pascal. ;-) sherm-- -- Cocoa programming in Perl: http://www.camelbones.org __

Re: Carbon is C++?

2010-02-25 Thread Stephen J. Butler
On Thu, Feb 25, 2010 at 5:45 PM, Chunk 1978 wrote: > i've been reading about how apple dropped their plans for Carbon 64 a > while back, so if carbon is C++ then i'm surprised that apple is still > supporting it at all? You're confusing a library/framework with the language that library is writte

Re: Carbon is C++?

2010-02-25 Thread Nick Zitzmann
On Feb 25, 2010, at 4:45 PM, Chunk 1978 wrote: > i've been reading about how apple dropped their plans for Carbon 64 a > while back, We just had a thread about this, but basically, Carbon is not dead; only parts of it were taken out of the 64-bit frameworks. > so if carbon is C++ then i'm surp

Re: Carbon is C++?

2010-02-25 Thread Sherm Pendley
On Thu, Feb 25, 2010 at 6:42 PM, Dave Carrigan wrote: > > On Feb 25, 2010, at 3:40 PM, Chunk 1978 wrote: > >> is Apple's Carbon basically code written in C++, while Cocoa is >> written in Objective-C?  should developers avoid using frameworks >> written in C++ (like some sound frameworks)? > > > W

Re: Carbon is C++?

2010-02-25 Thread Graham Cox
On 26/02/2010, at 10:40 AM, Chunk 1978 wrote: > is Apple's Carbon basically code written in C++, while Cocoa is > written in Objective-C? Some parts of Carbon is C++ internally, some is C, but the APIs are C. > should developers avoid using frameworks > written in C++ (like some sound framewor

Re: Carbon is C++?

2010-02-25 Thread Howard Siegel
http://developer.apple.com/carbon/ http://en.wikipedia.org/wiki/Carbon_%28API%29 On Thu, Feb 25, 2010 at 15:40, Chunk 1978 wrote: > is Apple's Carbon basically code written in C++, while Cocoa is > written in Objective-C? should developers avoid using frameworks > written in C++ (like some sou

Re: Carbon is C++?

2010-02-25 Thread Chunk 1978
i've been reading about how apple dropped their plans for Carbon 64 a while back, so if carbon is C++ then i'm surprised that apple is still supporting it at all? On Thu, Feb 25, 2010 at 6:42 PM, Dave Carrigan wrote: > > On Feb 25, 2010, at 3:40 PM, Chunk 1978 wrote: > >> is Apple's Carbon basica

Re: Carbon is C++?

2010-02-25 Thread Dave Carrigan
On Feb 25, 2010, at 3:40 PM, Chunk 1978 wrote: > is Apple's Carbon basically code written in C++, while Cocoa is > written in Objective-C? should developers avoid using frameworks > written in C++ (like some sound frameworks)? Why? Objective-C and C++ mix just fine as long as you follow a few

Re: Store more complex values into NSDictionary

2010-02-25 Thread Daniel Káčer
thus more to i think over, I start giving you the truth .. that this solution is basically what I need .. :) NSDictionary *values = [NSDictionary dictionaryWithObjectsAndKeys:@"A1", @"subKey1", @"B1", subKey2", nil]; NSDictionary *keyedValues = [NSDictionary dictionaryWithObjectsAndKeys:valu

Carbon is C++?

2010-02-25 Thread Chunk 1978
is Apple's Carbon basically code written in C++, while Cocoa is written in Objective-C? should developers avoid using frameworks written in C++ (like some sound frameworks)? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Re: Store more complex values into NSDictionary

2010-02-25 Thread Dave Carrigan
On Feb 25, 2010, at 3:28 PM, Daniel Káčer wrote: > but I would like to know whether exist any more elegant solution ... You could consider Core Data, but whether that is the right choice is very dependent on the real problem you're trying to solve. -- Dave Carrigan d...@rudedog.org Seattle,

Re: Store more complex values into NSDictionary

2010-02-25 Thread Daniel Káčer
Ok, this good idea .. but which container contains 2 values ? ... Array is one dimensional container, set also one dimensional and dictionary is key based container .. so value with key .. there i know only about solution NSDictionary with my custom class [NSDictionary addObject:&myClass forK

Re: Store more complex values into NSDictionary

2010-02-25 Thread Steve Christensen
On Feb 25, 2010, at 2:59 PM, Dave Carrigan wrote: On Feb 25, 2010, at 2:51 PM, Daniel Káčer wrote: i need help with solution about store more complex values into NSDictionary. I have following data which i need store in NSDictionary: value1:@"A1" value2:@"B1" key:1 value1:@"A2" value2:@"B2"

Re: Store more complex values into NSDictionary

2010-02-25 Thread Greg Parker
On Feb 25, 2010, at 2:59 PM, Dave Carrigan wrote: > On Feb 25, 2010, at 2:51 PM, Daniel Káčer wrote: >> >> i need help with solution about store more complex values into NSDictionary. >> I have following data which i need store in NSDictionary: >> >> value1:@"A1" value2:@"B1" key:1 >> value1:@"A2

Re: Store more complex values into NSDictionary

2010-02-25 Thread Dave Carrigan
On Feb 25, 2010, at 2:51 PM, Daniel Káčer wrote: > Hi, > > i need help with solution about store more complex values into NSDictionary. > I have following data which i need store in NSDictionary: > > value1:@"A1" value2:@"B1" key:1 > value1:@"A2" value2:@"B2" key:2 > value1:@"A3" value2:@"B3" k

Store more complex values into NSDictionary

2010-02-25 Thread Daniel Káčer
Hi, i need help with solution about store more complex values into NSDictionary. I have following data which i need store in NSDictionary: value1:@"A1" value2:@"B1" key:1 value1:@"A2" value2:@"B2" key:2 value1:@"A3" value2:@"B3" key:3 etc. What is the ideal solution for this my case ? thnx

Re: NSDeviceResolution

2010-02-25 Thread David Blanton
I did the below ... duh, all good now! On Feb 25, 2010, at 2:50 PM, Greg Parker wrote: NSValue* v = [dd valueForKey:NSDeviceResolution]; NSSize sz = [v sizeValue]; ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: NSDeviceResolution

2010-02-25 Thread Greg Parker
On Feb 25, 2010, at 1:40 PM, David Blanton wrote: > [window deviceDescription] is to return an NSDictionary of device description > data > > NSDeviceResolution key is to return an NSString representing an NSSIze > > Calling NSSizeFromString on this returned string causes and exception > > -[NSC

Re: NSDeviceResolution

2010-02-25 Thread Kyle Sluder
On Thu, Feb 25, 2010 at 1:40 PM, David Blanton wrote: > NSDeviceResolution key is to return an NSString representing an NSSIze No it's not. The documentation clearly states it's an NSValue: http://developer.apple.com/mac/library/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/

Re: NSColorPanel changeColor not called [work around]

2010-02-25 Thread David Blanton
I replaced calling NSColorPanel from a button click by using an NSColorWell and setting an action on it. Looks more Mac like as you see the current color before getting the picker Still would like to know why changeColor isn't called, eh Apple? -db On Feb 25, 2010, at 9:30 AM, David Bla

NSDeviceResolution

2010-02-25 Thread David Blanton
[window deviceDescription] is to return an NSDictionary of device description data NSDeviceResolution key is to return an NSString representing an NSSIze Calling NSSizeFromString on this returned string causes and exception -[NSConcreteValue getCString:maxLength:encoding:]: unrecognized sel

Re: Looking for info on anti-piracy and trial-mode techniques for my app . . .

2010-02-25 Thread Paul Sanders
No, I didn't really mean that, but obviously the less they have to go on the harder it is for them to hack your code. Stripping the symbols out of your binaries is a good start (but then you get lousy stack traces...) I also use another, slightly more devious scheme alongside all the technical

Re: Looking for info on anti-piracy and trial-mode techniques for my app . . .

2010-02-25 Thread Greg Parker
On Feb 25, 2010, at 7:14 AM, Brian Postow wrote: > As a theorist I agree. You can't win that game. The hacker, if they re-write > the OS can always get around whatever you put there, and usually there are > easier ways than that. > > OTOH, it depends a lot on your customers (or your customer's c

Re: setAction:@selector is not working ?

2010-02-25 Thread slasktrattena...@gmail.com
On Sun, Feb 21, 2010 at 4:14 PM, Graham Cox wrote: > Just a tip: look up NSStringFromSelector(); Right, thanks. I couldn't remember it off the top of my head. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

IKImageBrowserView - Rename item?

2010-02-25 Thread Norbert M. Doerner
Hello! How can I make a IKImageBrowserView to allow the user to rename an item, by clicking in the name section of the item, just like the Finder does it? Or maybe even through some context menu, but how do I open an Edit Session for the name of an item of the IKImageBrowserView? Thank you

Re: NSColorPanel changeColor not called

2010-02-25 Thread David Blanton
Yes, I had done that before also to no avail. But thinking I might have been tired and erred I have done it again. Still does not work. I am including the code and a link to a debug picture that shows all is set correctly (as far as I can tell). Would someone be willing to run this code and

UIImage from Photo Library

2010-02-25 Thread Development
Alright, I'm having the strangest issue. When I download an image from the internet or pick it up from disk I use I load it as NSData, then initialize the UIImage from the data. This is because when I write files to disk I am writing them as png, being that png is the default for iPhone/iPod. Wh

Re: NSWindow - how to resize it keeping aspect ratio?

2010-02-25 Thread Oftenwrong Soong
On Thu, February 25, 2010 7:37:17 AM Alexander Bokovikov wrote: > I don't understand what is the problem. Isn't "my" 422/674 ratio not a > constant? > What is a principal difference between it and "yours" 4/3? Just substitute my > digits > to whatever you need. You'll get just the same result.

Re: NSWindow - how to resize it keeping aspect ratio?

2010-02-25 Thread Alexander Bokovikov
On Thursday, February 25, 2010 at 5:57 PM Ariel Feinerman wrote: You calculate view`s aspect from it size, but I mean content frame (not window frame) from constant aspect, for example 4/3, then set size. I don't understand what is the problem. Isn't "my" 422/674 ratio not a constant? What is

Re: NSWindow - how to resize it keeping aspect ratio?

2010-02-25 Thread Ariel Feinerman
Vinai, maybe, I thought they are equivalent, thank you. 2010/2/25 vinai > > --- On Thu, 2/25/10, Ariel Feinerman wrote: > > > ... > > > > There is neither techinque for setting window`s frame > > itself, nor message for setting content view aspect. > > Ariel, > > Does the method setContentAs

Re: NSWindow - how to resize it keeping aspect ratio?

2010-02-25 Thread vinai
--- On Thu, 2/25/10, Ariel Feinerman wrote: > ... > > There is neither techinque for setting window`s frame > itself, nor message for setting content view aspect. Ariel, Does the method setContentAspectRatio for NSWindow not do what you need ? cheers vinai

Re: NSWindow - how to resize it keeping aspect ratio?

2010-02-25 Thread Ariel Feinerman
Alexander, And it works perfectly for me. 674 x 422 - is my original content view size, > defined in IB. You calculate view`s aspect from it size, but I mean content frame (not window frame) from constant aspect, for example 4/3, then set size. > Unfortunately IB operates by window's content v

Re: NSWindow - how to resize it keeping aspect ratio?

2010-02-25 Thread Alexander Bokovikov
On 25.02.2010, at 15:17, Ariel Feinerman wrote: there is of the matter is that -setAspectRatio: sets the window`s aspect ratio, but when window has been loaded from nib and not resized yet, its size is taken from "content size" that was written in IB with it own aspect. Then when window ha

Invitation to connect on LinkedIn

2010-02-25 Thread Ariel Feinerman
LinkedIn Ariel Feinerman requested to add you as a connection on LinkedIn: -- Cameron, I'd like to add you to my professional network on LinkedIn. - Ariel Accept invitation from Ariel Feinerman http://www.linkedin.com/e/AdB-vBGUaPDD8CAZeSRcxp2

Re: NSWindow - how to resize it keeping aspect ratio?

2010-02-25 Thread Ariel Feinerman
Hi, there is of the matter is that -setAspectRatio: sets the window`s aspect ratio, but when window has been loaded from nib and not resized yet, its size is taken from "content size" that was written in IB with it own aspect. Then when window has been resized it instantly get size to conform aspec