Re: Best practice when opening a Master-Detail app with no data in it yet

2012-09-20 Thread Richard Altenburg (Brainchild)
Op 20 sep. 2012, om 11:29 heeft Uli Kusterer het volgende geschreven: > You're letting a template file made by a programmer that illustrates how to > code decide what features your user interface will present? :-o No, but I was just wondering that if I want a better approach what would be con

Re: Best practice when opening a Master-Detail app with no data in it yet

2012-09-19 Thread Richard Altenburg (Brainchild)
Op 19 sep. 2012, om 22:31 heeft Uli Kusterer het volgende geschreven: > Is the item actually useful to the user beyond being there? Or would the user > have to delete the item and create a sensible one to actually use your app? The item is like a demo of what an item could look like, and the u

Re: Best practice when opening a Master-Detail app with no data in it yet

2012-09-19 Thread Richard Altenburg (Brainchild)
I might do both, although I can not do a "tap here" instruction if the Add button is not visible at launch. Have to create another way for that initial item to become alive. Thanks for your thoughts. [[[Brainchild alloc] initWithName:@"Richard Altenburg"] saysBestRegards]; Op 19 sep. 2012, om

Best practice when opening a Master-Detail app with no data in it yet

2012-09-19 Thread Richard Altenburg (Brainchild)
I am creating a master-detail app for both iPad and iPhone families of devices. For the iPad I use a split view controller and for the iPhone I use the standard drill-down interface (a table view when selected pushes the detail view onto the screen). Now it feels kind of awkward when a user fir

Re: Core Graphics optimisation

2012-08-13 Thread Richard Altenburg (Brainchild)
You have no time to watch WWDC 2012 presentations and like to avoid OpenGL ES as an alternative, how on earth are you going to write a fast app with thousands of drawings on a device with (in worst case) 256 MB of internal memory? I am not sure OpenGL ES will help, and one session from WWDC will

Re: How to (slowly) rotate a view

2012-08-05 Thread Richard Altenburg (Brainchild)
You are most welcome. It took me a while to find the cleanest solution for rotating views in my project and I wanted to give it to you to save you some headaches... Mit freundlichem Gruß. [[[Brainchild alloc] initWithName:@"Richard Altenburg"] saysBestRegards]; Op 5 aug. 2012, om 21:08 heeft

Re: How to (slowly) rotate a view

2012-08-05 Thread Richard Altenburg (Brainchild)
Something along these lines maybe?: [UIView animateWithDuration:durationSeconds animations:^ { [view setTransform:CGAffineTransformRotate([view transform], angleRadians)]; } ]; [[[Brainchild alloc] initWithName:@"Richard Altenburg"] saysBest

Re: Is it 'normal' that scrolling in a UIScrollView leaks some bytes?

2012-07-24 Thread Richard Altenburg (Brainchild)
Thank you Aaron and Julius for pointing out it is a known bug. I can not check the developer forums as I am not on a developer program just yet. I should have checked by searching on the web, sorry that this time I poured my problem right into the mailing list. As this is a known bug, Apple won

Re: Is it 'normal' that scrolling in a UIScrollView leaks some bytes?

2012-07-24 Thread Richard Altenburg (Brainchild)
Op 24 jul. 2012, om 19:28 heeft Richard Altenburg (Brainchild) het volgende geschreven: > Leaked Object: Malloc 48 Bytes Here is a deep copy of the call stack inside which this leak happened: Bytes Used # Leaks Symbol Name 48 Bytes 100.0% 1 main 48 By

Is it 'normal' that scrolling in a UIScrollView leaks some bytes?

2012-07-24 Thread Richard Altenburg (Brainchild)
I can answer it myself: no, it should not be considered normal that an app leaks memory, and that is why it makes me quite nervous. What happens is this: In an iPad / iPhone project I present a few UIImageViews on-screen. They are contained within their own UIScrollViews as I want to zoom in an

Re: Help: Create, import and edit SVG object in Cocoa app

2012-07-18 Thread Richard Altenburg (Brainchild)
This maybe? [[[Brainchild alloc] initWithName:@"Richard Altenburg"] saysBestRegards]; Op 6 jul. 2012, om 04:59 heeft lupeiyu het volgende geschreven: > I want to create SVG objects in my cocoa application using iPad Devices. > > And also I want to import an

Re: do you init your instance variables in init method or outside the class?

2012-07-18 Thread Richard Altenburg (Brainchild)
If you create a new instance of a class, all its instance variables are zero, so any pointers to objects like strings and arrays are zero as well, they are there but do not point to anything. The instantiation does not automatically create those objects as well for you, you are responsible. You

Re: cocoabuilder closed?

2012-07-10 Thread Richard Altenburg (Brainchild)
I just tried the website and it seems to work, I searched for my own name and even found some posts I was not even aware from many years ago ;-) You could try to contact Bertrand Mansion, the site owner, on cocoabuil...@mamasam.com for questions about the status. [[[Brainchild alloc] initWithN

Re: Modal event processing

2012-07-06 Thread Richard Altenburg (Brainchild)
Fritz Anderson's comments are very important, in that you do not control the state of your animation in the drawRect: but instead handle that from a calling method (like the one in your controller which is called from your timer). drawRect: is not fully under your control nor should you try to d

Re: Modal event processing

2012-07-06 Thread Richard Altenburg (Brainchild)
In a situation similar to yours, I ended up replacing the NSTimer with an NSAnimation. The animation I was doing was way faster after this tiny change, plus the user interface was not blocked at all. I refresh my animation 30 times per second now without any negative effect for the user. I think

Re: How to copy class interface and implementation without connections to .xib file

2012-07-02 Thread Richard Altenburg (Brainchild)
Thank you for elaborating on this, Charles. I was able to remove any connections to the old project by inserting new IBOutlets and IBActions with new names and pasting the code from the old project into the definition of the new methods. Copying the complete declarations copied over the connecti

Re: How to copy class interface and implementation without connections to .xib file

2012-07-01 Thread Richard Altenburg (Brainchild)
Op 2 jul. 2012, om 00:57 heeft Andy Lee het volgende geschreven: > If you Command-click the file icon in the window's title bar, you can see the > full path of the file you are looking at. If the path goes to the old > project, close it with File > Close "YourFileName.xib". The keyboard > equiv

Re: How to copy class interface and implementation without connections to .xib file

2012-07-01 Thread Richard Altenburg (Brainchild)
Op 1 jul. 2012, om 22:59 heeft Jens Alfke het volgende geschreven: >> It immediately showed that the outlets and actions were connected, and on >> inspection they were connected to the .xib in the old project. > > Um, what _exactly_ did it show? There's no way for files in different > projects

Re: How to copy class interface and implementation without connections to .xib file

2012-07-01 Thread Richard Altenburg (Brainchild)
Thanks for your thoughts, Charles. No, I did not copy the .xib to a new project. I created a new project for iOS wit one view, and created a new class in it that is to be a subclass of UIView which will contain my drawing code in drawRect. I copied code from the old project over into the new pr

How to copy class interface and implementation without connections to .xib file

2012-07-01 Thread Richard Altenburg (Brainchild)
(You may reply in Caps Lock if this question is too noobish for this list) I wrote an experimental project for Mac OS X. It uses a custom NSView and some user interface controls connected to the view's class in Interface Builder. I want to do about the same project for iOS, so I started a new pr

Re: Base64 encoding of NSImage

2012-07-01 Thread Richard Altenburg (Brainchild)
Op 1 jul. 2012, om 19:38 heeft Jens Alfke het volgende geschreven: > It's always better to use an already-tested library than to roll your own, if > it's feasible. Often you are not sure about the status of code you find online. Has it really been tested? Does it still work on my system, with m

Re: Base64 encoding of NSImage

2012-07-01 Thread Richard Altenburg (Brainchild)
If you want to be sure which one works for you, it is probably best to read how Base64 encoding actually works, maybe you find out you can just as easily roll your own solution. Especially on a fast Mac desktop, it would not have to be the worlds' most efficient solution, it will be fast anyways

Re: Base64 encoding of NSImage

2012-07-01 Thread Richard Altenburg (Brainchild)
I think the answers given here will help you out: http://stackoverflow.com/questions/392464/any-base64-library-on-iphone-sdk [[[Brainchild alloc] initWithName:@"Richard Altenburg"] saysBestRegards]; Op 1 jul. 2012, om 17:23 heeft Alexander Hartner het volgende geschreven: > I am looking at ava

Re: Handling "Smart Zoom" gesture?

2012-06-28 Thread Richard Altenburg (Brainchild)
The NDA is why I only gave you the title of the video, all developers in this list can access the WWDC videos and see for themselves what is new. I guess for 10.6 and 10.7 you could roll your own "Smart Zoom" functionality, but that is probably not what you wanted to hear. [[[Brainchild alloc]

Re: Handling "Smart Zoom" gesture?

2012-06-27 Thread Richard Altenburg (Brainchild)
You should watch "Session 231 - What's New with Gestures" from the WWDC 2012 video sessions... [[[Brainchild alloc] initWithName:@"Richard Altenburg"] saysBestRegards]; Op 28 jun. 2012, om 06:34 heeft Graham Cox het volgende geschreven: > I'm adding touch gestures to my app. In the System Prefs

Re: UISegmentedControl description is wrong.

2012-06-24 Thread Richard Altenburg (Brainchild)
The documentation does fail to mention the radio button mechanism for the UISegmentedControl, but some books about iOS programming do mention it. Too bad you had to find this out on your own, and also sorry to say that you can not change this behavior (except by subclassing the control and manag

Re: NSWindow AutoSave

2012-06-22 Thread Richard Altenburg (Brainchild)
It seems to me that indeed there are bugs in the AutoSave mechanism, but as I am not sure what you already tried I suggest reading this and then ask for more when needed: http://cocoadev.com/wiki/NSWindowFrameAutosizing Op 22 jun. 2012, om 18:10 heeft koko het volgende geschreven: > I have sea

Re: Core Image

2012-06-15 Thread Richard Altenburg (Brainchild)
Op 15 jun. 2012, om 14:24 heeft Luca Ciciriello het volgende geschreven: > I'm porting some CoreImage code from MacOS X to iOS and I'm unable to find > the key KCGImagePropertyOrientation. > My doubt is: Is this key available in iOS? > I'm using iOS 5.1 with Xcode 4.3.3 My documentation serach