scrolling content view resizes visibly but bounds and frame don't change

2010-09-09 Thread Christopher Corbell
This one is really bugging me. I have a WebView in a scrolling view and content gets appended to it periodically (new tables appended; the entire content of the WebView is reset each time via loadHTMLString on the mainFrame). VIsually, the webView correctly expands to include new content

Re: First trials in Cocoa app

2010-09-09 Thread Remco Poelstra
Op 9-9-2010 6:52, Dave Carrigan schreef: No, I missed that part about his VC being stored in the app delegate. So, yeah, if he isn't able to pass context to the C library, he can easily get to the VC in that way rather than resorting to a global. Hi, Thanks for the replies. I never expected

Re: scrolling content view resizes visibly but bounds and frame don't change

2010-09-09 Thread Quincey Morris
On Sep 9, 2010, at 00:20, Christopher Corbell wrote: This one is really bugging me. I have a WebView in a scrolling view and content gets appended to it periodically (new tables appended; the entire content of the WebView is reset each time via loadHTMLString on the mainFrame). You don't

Re: core data structure?

2010-09-09 Thread Amy Gibbs
I've made the changes to my model, and the UI for this. I was just wondering how I should achieve the following: (a similar relationship in my app, productss and kits, I had to do the same, add a third inbetween entity) Previously I summed the price attribute of the item to give me a

Question about architecture

2010-09-09 Thread Daniel Lopes
Hello, I'm learning Cocoa and Objc and enjoying a lot, especially because my background is in Ruby and both languages are basically the same thing except for the syntax. But what I don't understand very well and neither find good guidelines is how architect my app. I'm doing my studies in a

NSOutlineView

2010-09-09 Thread koko
It is my understanding that an NSOutlineView is only 'populated' by using its Delegate Methods. My manager (a Windows guy with no Cocoa) claims the NSOutlineView can be directly manipulated as in add root, add child etc. Comments please before I pull my hair out. -koko

Re: NSOutlineView

2010-09-09 Thread Tony Romano
What he is referring to is using a NSTreeController. You bind the controller to the NSOutlineView and provide KVC compliant methods to enumerate the children and it can optionally create nodes for you as well. Check out the sample SourceView from Apple. Tony Romano

Re: NSOutlineView

2010-09-09 Thread Robert Martin
Nothing stops you from directly manipulating the Data Source and reloading to do just that - MVC is the paradigm. On Sep 9, 2010, at 10:59 AM, k...@highrolls.net wrote: It is my understanding that an NSOutlineView is only 'populated' by using its Delegate Methods. My manager (a Windows

Re: NSOutlineView

2010-09-09 Thread Kyle Sluder
On Sep 9, 2010, at 7:59 AM, k...@highrolls.net wrote: It is my understanding that an NSOutlineView is only 'populated' by using its Delegate Methods. My manager (a Windows guy with no Cocoa) claims the NSOutlineView can be directly manipulated as in add root, add child etc. NSOutlineView

indexedUITableView question

2010-09-09 Thread Eric E. Dolecki
Quick question: the rounded rect badge with the letter (for instance) that comes up while scrubbing an indexedUITableView... is that custom by Apple (I've seen it in their iPhone apps), or is that supposed to appear on it's own while scrubbing through the index? I imagine that it's custom and we

Controls created at runtime aren't drawn as enabled until a mouse click...

2010-09-09 Thread Steve Christensen
I have a window and controls that are loaded from a nib. One of the controls builds a subview hierarchy to control a set of parameters that aren't known until runtime. What I'm finding is that all of the controls in that hierarchy are drawn as if they're disabled until you click on them, then

Re: NSOutlineView

2010-09-09 Thread koko
Thanks all for the helpful comments and insights. -koko On Sep 9, 2010, at 10:42 AM, Kyle Sluder wrote: On Sep 9, 2010, at 7:59 AM, k...@highrolls.net wrote: It is my understanding that an NSOutlineView is only 'populated' by using its Delegate Methods. My manager (a Windows guy with no

Re: Controls created at runtime aren't drawn as enabled until a mouse click...

2010-09-09 Thread Kevin Wojniak
Any chance you're using an NSBorderlessWindowMask window? If so, you may need to override canBecomeKeyWindow. Kevin On Sep 9, 2010, at 11:12 AM, Steve Christensen wrote: I have a window and controls that are loaded from a nib. One of the controls builds a subview hierarchy to control a set

Re: Controls created at runtime aren't drawn as enabled until a mouse click...

2010-09-09 Thread Steve Christensen
Nope, it's a regular window with a title bar and everything. All of the controls that are instantiated from the nib are fine; only the controls created manually at runtime are showing this behavior. On Sep 9, 2010, at 11:41 AM, Kevin Wojniak wrote: Any chance you're using an

Re: core data structure?

2010-09-09 Thread Jerry Krinock
On 2010 Sep 09, at 04:14, Amy Gibbs wrote: I didn't really want to save the values as attributes, as I'd like the values to reflect changes to the product prices. I only need to display these in a label onscreen. Is this what transient attributes are for? Yes, but before you use

Re: isTemporaryID unrecognized selector - how do I debug this?

2010-09-09 Thread Sean McBride
On Fri, 3 Sep 2010 19:52:54 -0700, Jerry Krinock said: http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html Architecture Considerations Sadly this awesome technote has not been updated in 3 years. We should all file bugs. :) But there's a problem. I see you've got a 64-bit

Animating the view layer

2010-09-09 Thread Sivakumar Kandappan Singaravadivelu
Hi Everybody I need to bring the ripple effect animation in iphone that is present in widget application when you drop a new widget. I tried posting in various forums including apple forum I cant find the answer for it. I hope you guyz can help. The following is the code which I used for the

How to debug this?

2010-09-09 Thread Luca C.
Hi everybody, unfortunately I can't be more precise than the title. Here's what I get Thread 0 Crashed: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x7fff8766c11c objc_msgSend + 40 1 com.apple.CoreFoundation 0x7fff882e9cc6 _CFAutoreleasePoolPop

Re: core data structure?

2010-09-09 Thread Luca C.
When you say a product can link to more than one order, then I assume you use an array to store the orders. Why not just creating an array of dictionaries, where in each dictionary you set the order, the number of products, and possibly other information. This way when you want to know how many

Phone lock/Apple sounds

2010-09-09 Thread Dan Hopwood
Hi all, My iPhone application continuously pings a back-end server to check for new documents. If a new document is found an alert is triggered which consists of a dialogue and sound alert. If the phone is locked then neither of these events occur, which is undesirable. With a bit of googling I

Re: Animating the view layer

2010-09-09 Thread David Duncan
You are using Private API. Don't do that. On Sep 9, 2010, at 12:07 AM, Sivakumar Kandappan Singaravadivelu wrote: Hi Everybody I need to bring the ripple effect animation in iphone that is present in widget application when you drop a new widget. I tried posting in various forums including

Re: Phone lock/Apple sounds

2010-09-09 Thread Luke the Hiesterman
This is what push notifications are for. http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html Luke On Sep 9, 2010, at 5:47 AM, Dan Hopwood wrote: Hi all, My iPhone application continuously pings a back-end

Re: How to debug this?

2010-09-09 Thread Bill Bumgarner
On Sep 9, 2010, at 4:27 AM, Luca C. wrote: 0 libobjc.A.dylib 0x7fff8766c11c objc_msgSend + 40 1 com.apple.CoreFoundation 0x7fff882e9cc6 _CFAutoreleasePoolPop + 230 2 com.apple.Foundation 0x7fff87a4881a Classic overrelease problem.

Re: Question about architecture

2010-09-09 Thread Richard Somers
On Sep 9, 2010, at 8:32 AM, Daniel Lopes wrote: Hello, I'm learning Cocoa and Objc and enjoying a lot, especially because my background is in Ruby and both languages are basically the same thing except for the syntax. But what I don't understand very well and neither find good guidelines

Re: How to debug this?

2010-09-09 Thread Luca C.
Thanks for your reply - solved. The problem was because of a goto: placed before any init happened. 2010/9/9 Bill Bumgarner b...@mac.com On Sep 9, 2010, at 4:27 AM, Luca C. wrote: 0 libobjc.A.dylib 0x7fff8766c11c objc_msgSend + 40 1 com.apple.CoreFoundation

Re: Question about architecture

2010-09-09 Thread Daniel Lopes
Thanks Richard, actually I already read Hillegass book. Right now, my material to study is http://pragprog.com/titles/dscpq/cocoa-programming it is pretty good. I also already watched all PragProg screencasts related to cocoa. But the problem with learn Cocoa is how apply the best pratices that

Re: Question about architecture

2010-09-09 Thread Richard Somers
On Sep 9, 2010, at 1:58 PM, Daniel Lopes wrote: But the problem with learn Cocoa is how apply the best pratices that are exclusevely to Cocoa. Things like how to organize nibs, when I should separate or not views, create custom views or not and etc. As soon as finish Coco Programming I

Re: Question about architecture

2010-09-09 Thread Greg Guerin
Daniel Lopes wrote: But what you think about separate custom views in diferent nibs? Is that right? Try it. See what happens. Repeat as needed. A lot of design questions can only be answered well by experience. Either you already have the experience from an earlier project, or you

Re: isTemporaryID unrecognized selector - how do I debug this?

2010-09-09 Thread John C. Randolph
This was covered in a couple of WWDC talks. Look for the sessions on debugging. -jcr On Sep 9, 2010, at 12:23 PM, Sean McBride wrote: On Fri, 3 Sep 2010 19:52:54 -0700, Jerry Krinock said: http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html Architecture Considerations

Re: isTemporaryID unrecognized selector - how do I debug this?

2010-09-09 Thread Mark Ritchie
On 9/Sep/2010, at 1:27 PM, John C. Randolph wrote: This was covered in a couple of WWDC talks. Look for the sessions on debugging. And it was covered on this list last week: ;-) http://lists.apple.com/archives/cocoa-dev/2010/Sep/msg00103.html M.

Re: Question about architecture

2010-09-09 Thread Laurent Daudelin
One of the main reason to split different views in different nibs is that it speeds up launch time. If all your views are in the same, MainWindow nib, then all those views need to be instantiated and their outlets connected when your app starts. So, the idea is to segment those views in

A/B testing

2010-09-09 Thread Anna Billstrom
I have a relatively simple game, and I wanted to test some UI elements, to see which is more popular and useful for customers. Does anyone have a practice of setting up a testing harness in their app, so they can readily show different versions to different users, and report back on those

Re: isTemporaryID unrecognized selector - how do I debug this?

2010-09-09 Thread Sean McBride
On Thu, 9 Sep 2010 13:37:01 -0700, Mark Ritchie said: On 9/Sep/2010, at 1:27 PM, John C. Randolph wrote: This was covered in a couple of WWDC talks. Look for the sessions on debugging. And it was covered on this list last week: ;-)

Re: Question about architecture

2010-09-09 Thread Richard Somers
On Sep 9, 2010, at 2:25 PM, Greg Guerin wrote: Try it. See what happens. Repeat as needed. A lot of design questions can only be answered well by experience. Either you already have the experience from an earlier project, or you plan to get the experience by writing one to throw away.

Re: A/B testing

2010-09-09 Thread Mark Ritchie
Hey! On 9/Sep/2010, at 2:01 PM, Anna Billstrom wrote: Other ideas? 1) Please start a new thread instead of replying to another with a different subject... Messes up thread tracking. ;-) 2) I think that you actually want the opposite, but in case that's not the case: the Automated User

Re: Question about architecture

2010-09-09 Thread Daniel Lopes
Sure Greg Guerin, I couldn't agree more. I have 10 years of experience in software development and this is the process to be an expert in anything, in cocoa it will not be different. But my approach to learn any new language is read at least three books entirely before do any serious development

Re: A/B testing

2010-09-09 Thread banane
Sorry Mark, didn't know the thread info was still attached, if I changed the subject. Right- I don't want automated testing, but to release a version A of the app, and a Version B, and see which one performs better. This post (http://www.markj.net/ab-testing-iphone-app-names-360idev/) advises

Re: A/B testing

2010-09-09 Thread Scott Anguish
On Sep 9, 2010, at 5:31 PM, banane wrote: Sorry Mark, didn't know the thread info was still attached, if I changed the subject. Right- I don't want automated testing, but to release a version A of the app, and a Version B, and see which one performs better. This post

Re: A/B testing

2010-09-09 Thread Scott Anguish
That would be one option. On Sep 9, 2010, at 11:52 PM, Anna Billstrom wrote: I am using nibs, so you're suggesting switching the nib according to... Whether the device id ends in an odd or even #, or some other logic? Sent from my iPhone On Sep 9, 2010, at 7:33 PM, Scott Anguish

Generating variable frequency tones

2010-09-09 Thread Remco Poelstra
Hi, I'm looking for some way to generate a tone that resembles the sound of an instrument. I need precise control of the base frequency (pitch). I'm wondering what would be the best way to generate it on an iPhone. Store a file with a know frequency and resample it to the desired