Re: NSTableView with ArrayController bindings not updating?

2011-01-02 Thread Keary Suska
On Jan 1, 2011, at 5:13 PM, Ben Golding wrote: Controller key selection This binding is wrong in your case. Refer to the examples in the Bindings Programming Topics document: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CocoaBindings/CocoaBindings.html,

Re: UITableViewCell showsReorderControl does nothing

2011-01-02 Thread Matt Neuburg
On Fri, 31 Dec 2010 21:52:29 +0800, Roland King r...@rols.org said: I've read the UITableView / UITableViewCell documentation for reordering several times now. As I understand it in order to have a reorder control shown when the table goes into editing mode you have to have the following 1)

Re: Funky icons in UITabBar

2011-01-02 Thread Matt Neuburg
On Fri, 31 Dec 2010 20:13:15 -0600, William Squires wsqui...@satx.rr.com said: What are the proper dimensions of a .png for use by a UITabBar item? I've got one project (which works) which has two 57x57xmillions-of-colors png's using a simple black-and-white coloration. I have another project

Re: iPhone UISearchDisplayController how to handle memory warning

2011-01-02 Thread Matt Neuburg
On Sat, 01 Jan 2011 10:36:01 -0600, Donald Largen don.lar...@me.com said: Here is my situation. I have UIViewController, call it ViewControllerA, that contains an UITableView and UISearchDisplayController. ViewControllerA is the root view controller in a UINavigationController. Things seem to

Re Re: String variables in classes

2011-01-02 Thread Brian Durocher
Thank you guys for your assistance. I come from a C++ background and have done embedded design in ASM. But this way of working and particularly the framework is very new to me. I understand what you are saying, but the literature I am reading is very disappointingly. I have solved the issue with

Re: Re Re: String variables in classes

2011-01-02 Thread Charles Srstka
On Jan 2, 2011, at 5:17 PM, Brian Durocher wrote: - (void) setCaption: (NSString*)input { [caption autorelease]; caption = [input retain]; } For this (and for the rest of the NSString ivars), it’s generally better to use -copy rather than -retain. The reason for this is that it is

Re: Search within a UIWebView (iOS 4.2)

2011-01-02 Thread Philip Vallone
Hi List, I was wondering if any one could provide some guidance on this? Thanks, Phil On Dec 26, 2010, at 2:04 PM, Philip Vallone wrote: Hi List, In iOS 4.2, you can search within a webpage in Safari. Is there a search bar object that can do this in a UIWebView? Thanks, Phil

Re: Re Re: String variables in classes

2011-01-02 Thread Charles Srstka
On Jan 2, 2011, at 5:17 PM, Brian Durocher wrote: Thank you guys for your assistance. I come from a C++ background and have done embedded design in ASM. But this way of working and particularly the framework is very new to me. I understand what you are saying, but the literature I am reading

Re: Re Re: String variables in classes

2011-01-02 Thread Stephen J. Butler
On Sun, Jan 2, 2011 at 5:17 PM, Brian Durocher brian.duroc...@gmail.com wrote: #import Foundation/Foundation.h @interface Calculator : NSObject {    double accumulator;    NSString* caption;    NSString* name;    NSString* temp; } - (id) init; - (void) setAccumulator:(double) n; -

Re: Re Re: String variables in classes

2011-01-02 Thread Charles Srstka
On Jan 2, 2011, at 6:10 PM, Stephen J. Butler wrote: - Charles asks 'why the @' and I can answer that question: because you couldn't figure out another way to call stringByAppendingFormat: could you? The answer is that in this case you should be calling +[NSString stringWithFormat:].

Re: Re Re: String variables in classes

2011-01-02 Thread Graham Cox
On 03/01/2011, at 10:17 AM, Brian Durocher wrote: This line of code seems to work for exactly what I was looking for: temp = [[temp stringByAppendingFormat:@ %@ %@ \n, input1, input2] retain]; Except it's quite wrong from a memory management point of view. As well as the excellent

Re: UITableViewCell showsReorderControl does nothing

2011-01-02 Thread Roland King
ok that's what I've effectively done by implementing 3), which makes 2) return YES for all rows, which is what I wanted. So, err what is 1) for? It's a property, it exists, it's in the documentation but it doesn't seem to do anything. On 03-Jan-2011, at 5:14 AM, Matt Neuburg wrote: On Fri,

NSView drawing with superimposed text

2011-01-02 Thread Michael McLaughlin
With Xcode 3.2.5 and the corresponding IB, I have a custom NSView into which I want to draw. This view has 15 static text views in front of it, in the contentView only, all of which are filled in before the custom drawing and none of which draw their own backgrounds. The code for the custom

Rendering combining marks

2011-01-02 Thread George Nachman
Hi cocoa-dev, I'm using CGContextShowGlyphsWithAdvances to render fixed-width text because it is very fast. If a glyph is missing, I use CTFontCreateForString() to pick a better font, and that usually works. I ran into a case that I just can't solve with this technique: the glyph for code point

Re: NSView drawing with superimposed text

2011-01-02 Thread Erik Buck
Each time -drawRect: is called, the rect parameter is a dirty rectangle calculated by the frameworks to be the smallest area that needs to be redraw. With your implementation, you are probably filling several small sub-rectangles of the view's bounds with white and then stroking lines in only

Re: NSView drawing with superimposed text

2011-01-02 Thread Quincey Morris
On Jan 2, 2011, at 10:36, Michael McLaughlin wrote: With Xcode 3.2.5 and the corresponding IB, I have a custom NSView into which I want to draw. What you describe below doesn't entirely make sense, so perhaps you can clarify a bit. This view has 15 static text views in front of it, in