Re: Problem with UITableView

2010-08-01 Thread Dave Carrigan
The typical idiom is to try to dequeue a reusable cell. If that returns nil, create a new cell. No matter whether it was dequeued or created, configure the cell (i.e., assign values to labels, configure decorations, etc.). Dequeuing saves you the overhead of creating new views but you still need

Displaying an edit field in a cell at the bottom of the tableview (2)

2010-08-01 Thread Laurent Daudelin
Hmmm.. I think the fact that the tableview is embedded in an enclosing view seems to be the problem. I checked another tableview that has 4 cells with textfields and as soon as the textfield becomes first responder, the field is scrolled into view. I have 2 buttons in the toolbar a the bottom an

Displaying an edit field in a cell at the bottom of the tableview

2010-08-01 Thread Laurent Daudelin
Maybe a stupid question but I have 5 cells in a section of my tableview. When I move the cursor to edit cell 3, it's partially obscured by the keyboard. I can't even see cell 4 and cell 5. Surely there must be a way to make the cell visible for editing? My tableview is embedded in a view that al

Re: How troubleshoot when Managed Object disappears from Store?

2010-08-01 Thread Quincey Morris
On Aug 1, 2010, at 18:31, Jerry Krinock wrote: > When initializing an NSPersistentDocument with sqlite store in a Mac app, I > insert what I call a "singleton" managed object, like the "Department" in > DepartmentAndEmployees. It's simply a container which has a to-many > relationship to its c

Re: Unarchiving issues

2010-08-01 Thread Michael Ash
On Sun, Aug 1, 2010 at 3:30 PM, James Maxwell wrote: > Hello All, > > I have a strange problem with NSKeyedArchiver/Unarchiver. I have a very > complex object graph that I want to be persistent, independently of my > document objects, so I'm archiving it into the user's application support > fo

Odd problem with UIView touch handling

2010-08-01 Thread PCWiz
Hi, For my iPad app, I'm using a UIViewController subclass called SidebarViewController to display some stuff in a sidebar. In the sidebar I have a calendar control. I'm using the open source Kal component from http://github.com/klazuka/Kal. In the -viewDidLoad method of SidebarViewController,

How troubleshoot when Managed Object disappears from Store?

2010-08-01 Thread Jerry Krinock
When initializing an NSPersistentDocument with sqlite store in a Mac app, I insert what I call a "singleton" managed object, like the "Department" in DepartmentAndEmployees. It's simply a container which has a to-many relationship to its containees (i.e., employees). Delete Rule is Nullify. I

Re: table header cells not on even lines

2010-08-01 Thread Shane
> Maybe your custom table header cell might have the wrong width, and that > you've hard-coded it: > >>     [column setWidth:40]; > > Try changing that. > It isn't the width that I'm so much worried about, rather, it's the height. You can see how the white fill runs up into the gray that is more

Re: Using an NSToolbar in a sheet

2010-08-01 Thread Dave Fernandes
Thanks. I wasn't aware of child windows. Can they be made document-modal? On 2010-08-01, at 7:07 PM, Andreas Mayer wrote: > > Am 02.08.2010 um 00:20 Uhr schrieb Dave Fernandes: > >> Is this just a bug, or is it completely unsupported? Can anyone give me a >> workaround for this? > > I don't t

Re: table header cells not on even lines

2010-08-01 Thread Jerry Krinock
On 2010 Jul 31, at 21:52, Shane wrote: > table header cell is all white and even extends slightly into the gray area Maybe your custom table header cell might have the wrong width, and that you've hard-coded it: > [column setWidth:40]; Try changing that.

Re: Using an NSToolbar in a sheet

2010-08-01 Thread John Joyce
On Aug 1, 2010, at 5:20 PM, Dave Fernandes wrote: > I haven't found anything specific in the HIG about this, so I'd be interested > in some opinions... > > I have an modal editor sheet that attaches to a document window to allow > certain document contents to be manipulated. The sheet is somew

Re: Using an NSToolbar in a sheet

2010-08-01 Thread Andreas Mayer
Am 02.08.2010 um 00:20 Uhr schrieb Dave Fernandes: Is this just a bug, or is it completely unsupported? Can anyone give me a workaround for this? I don't think toolbars on sheets are supported. As you said yourself, the user might get confused if there a two toolbars in a single window.

Using an NSToolbar in a sheet

2010-08-01 Thread Dave Fernandes
I haven't found anything specific in the HIG about this, so I'd be interested in some opinions... I have an modal editor sheet that attaches to a document window to allow certain document contents to be manipulated. The sheet is somewhat complex, and toolbar items are definitely helpful to have

Re: Unarchiving issues

2010-08-01 Thread Quincey Morris
On Aug 1, 2010, at 13:31, James Maxwell wrote: > heh... yeah, that's true. But the thing is I haven't done anything different > with this particular float* array. It's the same type of archiving I've used > at many points in the app. > But I hadn't thought to look for weak references could

Re: Unarchiving issues

2010-08-01 Thread James Maxwell
heh... yeah, that's true. But the thing is I haven't done anything different with this particular float* array. It's the same type of archiving I've used at many points in the app. But I hadn't thought to look for weak references could this be as simple as making sure to type cast objects w

Re: Unarchiving issues

2010-08-01 Thread Quincey Morris
On Aug 1, 2010, at 12:30, James Maxwell wrote: > What I don't understand is how the Hierarchy can be fine at the end of the > Network's initWithCoder method, but then get banjaxed somehow after that. Sure you do. Things disappear suddenly when not retained or strongly referenced. You're descri

Unarchiving issues

2010-08-01 Thread James Maxwell
Hello All, I have a strange problem with NSKeyedArchiver/Unarchiver. I have a very complex object graph that I want to be persistent, independently of my document objects, so I'm archiving it into the user's application support folder. The root object for the archive is a class called Network,

Re: Search Kit memory management

2010-08-01 Thread Aaron Burghardt
On Aug 1, 2010, at 2:43 AM, Michael Thon wrote: > > On Jul 31, 2010, at 12:15 PM, Ken Thomases wrote: > >> On Jul 31, 2010, at 2:24 AM, Michael Thon wrote: >> >>> I am indexing a large set of files using Search Kit. I find that memory >>> usage (reported by Activity Monitor) keeps growing in

Mouse movement event defined in physical units

2010-08-01 Thread Eugene ‘Dae’ Zuyev
Hello, I need to simulate a mouse movement defined in physical/logical units rather than pixels, in OS X 10.6. Is it possible to do that? Thank you! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderato

Re: Search Kit memory management

2010-08-01 Thread Michael Thon
On Aug 1, 2010, at 6:44 PM, Ken Thomases wrote: > On Aug 1, 2010, at 11:10 AM, Michael Thon wrote: > >> I should probably just stick to my observations and state that "Real Mem" in >> Activity Monitor is reduced by several hundred MB when the NSOperation >> finishes indexing a few thousand doc

Re: strange horizontal line in scroll view

2010-08-01 Thread Graham Cox
On 02/08/2010, at 2:19 AM, Nick Rogers wrote: > - (id)prototype > { > HexCell *aCell = [[ HexCell alloc] init]; > [aCell setEnabled:YES]; > [aCell setStringValue:@"00"]; > [aCell setFont:[NSFont systemFontOfSize:10.0]]; > return aCell; > } You really don't want to

Re: Search Kit memory management

2010-08-01 Thread Ken Thomases
On Aug 1, 2010, at 11:10 AM, Michael Thon wrote: > I should probably just stick to my observations and state that "Real Mem" in > Activity Monitor is reduced by several hundred MB when the NSOperation > finishes indexing a few thousand documents. Yeah, using "Real Mem" in Activity Monitor is

Re: strange horizontal line in scroll view

2010-08-01 Thread Nick Rogers
Hi, Thanks for the reply. I used matrix to display data inside a sector years ago, when I had just started learning cocoa. I know its a crude and inefficient way to make a hex viewer, but currently its not required to be sophisticated at all and I didn't have the time to make any big changes. I

Re: Search Kit memory management

2010-08-01 Thread Michael Thon
On Aug 1, 2010, at 3:12 PM, Ken Thomases wrote: > On Aug 1, 2010, at 1:43 AM, Michael Thon wrote: > >> I am indexing possibly tens of thousands of documents. No matter what I >> tried, I could not get search kit to release its memory, even after closing >> the index. The only way I could prev

Re: Search Kit memory management

2010-08-01 Thread Michael Thon
> > Hi Mike, > > What happens if you periodically call SKIndexFlush() in your loop? > > After closing the index, did you use Instruments to confirm that your > allocated memory is still allocated or did you look at memory usage in > Activity Monitor? Due to underlying memory management, Activi

Re: Search Kit memory management

2010-08-01 Thread Ken Thomases
On Aug 1, 2010, at 1:43 AM, Michael Thon wrote: > I am indexing possibly tens of thousands of documents. No matter what I > tried, I could not get search kit to release its memory, even after closing > the index. The only way I could prevent memory usage from growing too much is > to do the in

Re: strange horizontal line in scroll view

2010-08-01 Thread Graham Cox
On 01/08/2010, at 9:28 PM, Nick Rogers wrote: > Please take a look at the attached image. > > Please suggest what I am doing wrong or need to do. This is a really terrible way to make a hex viewer. Consider using NSTextView or just use a custom view (I think I've seen a 3rd party open source

strange horizontal line in scroll view

2010-08-01 Thread Nick Rogers
Hi, I have three matrices (all same sub class of NSMatrix, having prototype as a subclass of NSTextFieldCell), initially inited to have 1 row each and 1, 16 and 16 columns respectively. I'm trying to make a simple hex viewer using matrix instead of complex custom views for display. Then I add r

Re: loading French strings being in English language

2010-08-01 Thread Mark Ritchie
Hey! On 31/Jul/2010, at 10:41 PM, cocoa learner wrote: > Any example or code snippet will help here. Sure! ;-) // get the shared defaults object NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults]; // remove any previous setting for languages [userDefaults removeObjectForKey:@

Re: IKImageView choppy?

2010-08-01 Thread Graham Cox
On 01/08/2010, at 3:38 PM, Steve Christensen wrote: > If you manage a thumbnail cache to supply those images, you could restrict > the maximum memory footprint and reduce the likelihood that you'll keep > getting expensive (time-wise) delays trying to generate/draw an image in the > browser.