Breakpoint when NSString gets set to a certain value?

2013-07-19 Thread Jerry Krinock
The 'leaks' tool has identified several NSString objects that my app is leaking. But neither 'leaks' nor Instruments > Leaks identifies the responsible frame in my code. The 'leaks' tool gives me the string value, but I still need more clues to find it in my code. This string appears to be th

Re: UIScrollView to UIImage

2013-07-19 Thread Cody Garvin
You're right Kyle. I quickly tried it, saw it worked and moved on. I'll try it again another way and report back Please excuse mobile typos On Jul 18, 2013, at 1:37 PM, Kyle Sluder wrote: > On Thu, Jul 18, 2013, at 01:18 PM, Cody Garvin wrote: >> The UIScrollView adds these subviews to what's

Re: Threads

2013-07-19 Thread koko
On Jul 19, 2013, at 1:48 PM, Fritz Anderson wrote: > Use an NSOperation, or -performSelectorOnMainThread: (you'll have to wrap the > call in your own method), or dispatch_[a]sync() to do it on the main thread. So are you saying that in the following code: - (void)setNeedsDisplayWrapper:(BOOL)

Threads

2013-07-19 Thread koko
I have a NSMatrix into which I place NSImageCells. I create a data source based on user input that specifies how many cells and what the cell content should be. The NSMatrix row and columns are recalculated based on this data source. Now I call -setNeedsDisplay:YES on the NSMatrix The cells ar

Re: height of UITableView with exactly two rows

2013-07-19 Thread Kyle Sluder
On Jul 19, 2013, at 6:03 AM, Koen van der Drift wrote: > I have a follow up question. I decided to make the UITableView with the > grouped style. Of course, now it is higher because of the additional space > that is drawn above and under the two rows. After doing some searching, an > addit

Re: Threads

2013-07-19 Thread Scott Ribe
No. But that's not what you asked. You asked how to call setNeedsDisplay from another thread. What are you really trying to do? On Jul 19, 2013, at 2:09 PM, koko wrote: > All calls made by Cocoa to display the view will be done a separate thread? -- Scott Ribe scott_r...@elevated-dev.com ht

Re: Threads

2013-07-19 Thread Graham Cox
It *sounds* like what you could be after is asynchronous loading of the image data, so that the cell content is displayed once the image is loaded. That is not simply a matter of calling -setNeedsDisplay asynchronously, which will not achieve anything. Doing this isn't hard, and it's usually wo

Re: height of UITableView with exactly two rows

2013-07-19 Thread Kyle Sluder
On Jul 19, 2013, at 9:30 AM, Koen van der Drift wrote: > > The problem I foresee though is that at the time I create the tableView, the > dataSource method for the number of rows (= 2) hasn't been called yet, and > therefore the table doesn't know what the contentSize will be. Try calling -l

Re: height of UITableView with exactly two rows

2013-07-19 Thread Koen van der Drift
On Jul 19, 2013, at 10:15 AM, Kyle Sluder wrote: > On Jul 19, 2013, at 6:03 AM, Koen van der Drift > wrote: > >> I have a follow up question. I decided to make the UITableView with the >> grouped style. Of course, now it is higher because of the additional space >> that is drawn above and

Re: NSUndoManager Won't Redo

2013-07-19 Thread Keary Suska
On Jul 18, 2013, at 2:04 PM, Quincey Morris wrote: > On Jul 18, 2013, at 11:58 , Keary Suska wrote: > >> Posting in hopes that someone has run into this case and figured it out. > > There used to be a bug in text field undo in a somewhat similar case (though > I don't remember whether it invol

Re: height of UITableView with exactly two rows

2013-07-19 Thread Koen van der Drift
I have a follow up question. I decided to make the UITableView with the grouped style. Of course, now it is higher because of the additional space that is drawn above and under the two rows. After doing some searching, an additional height of 22 points seems to be appropriate to make it fit p