Re: table view and custom cell optimization problem

2011-03-04 Thread Quincey Morris
On Mar 3, 2011, at 23:54, Nick Rogers wrote: > But the problem is that I don't have anything common in the rows. > The image (128x128) are different, the four lines of text are different and > the lines I draw are different in each cell. On 3 Mar 2011, at 04:06, Nick Rogers wrote: > I have a ta

Re: Outlets Not Connected In awakeFromNib

2011-03-04 Thread Andreas Grosam
All, thank you for your replies. It made me re-read the Resource Programming Guide. And it works exactly as it is described (except that the description for -awakeFromNib in the Reference could be more accurate). Though, I have mixed feelings about how it works. Unfortunately, due to the probl

Re: table view and custom cell optimization problem

2011-03-04 Thread jonat...@mugginsoft.com
On 4 Mar 2011, at 07:54, Nick Rogers wrote: > Hi, > Thanks for the reply. > > But the problem is that I don't have anything common in the rows. > The image (128x128) are different, the four lines of text are different and > the lines I draw are different in each cell. > > Any Ideas? > I use

API to check if the screen is zoomed

2011-03-04 Thread Deepa
Hi, I am developing an Desktop application in which I want to perform some operation if the System screen is zoomed. Is there any API to identify if the screen is zoomed or not. If notification is the solution that will not work for me. Because, the screen might have been zoomed before my app i

Accepting current edited text field contents

2011-03-04 Thread Jonathan Taylor
I have a window with a large number of editable text fields, and a big "Go" button. The text fields are bound to values in my class. At the moment if there is an edit of one of the values in progress and then I press "Go" then the "old" value for that field is the one in my class variable that i

Re: animating addSubview with iOS4

2011-03-04 Thread Andreas Grosam
On Mar 3, 2011, at 8:16 PM, Matt Neuburg wrote: > Except that as Robert Vojta told you (and as Luke Hiesterman has clearly > stated on other occasions) it is wrong to assume that viewDidLoad means that > the view is now in the *interface*, or even that it is *about* to be put into > the interf

Re: NSTableView: which delegate after a drag operation?

2011-03-04 Thread Ulf Dunkel
Hi Scott. Here are my two questions: 1) Which delegate can I use to inform table view B to update and reload its data when I have dragged an item inside table view A? If you’re adding it to the object array, you can easily do the update notification then. Thank you for your suggestion. Ma

Re: NSXMLElement children doesn't return whitespace text nodes

2011-03-04 Thread Heath Borders
That worked! Embarrassingly, I looked at the documentation for NSXMLDocumentTidyXML and found my answer, as well: Changes malformed XML into valid XML during processing of the document. It also eliminates “pretty-printing” formatting, such as leading tab characters. However, it respects the xmlns

Re: Accepting current edited text field contents

2011-03-04 Thread Quincey Morris
On Mar 4, 2011, at 03:40, Jonathan Taylor wrote: > I have a window with a large number of editable text fields, and a big "Go" > button. The text fields are bound to values in my class. At the moment if > there is an edit of one of the values in progress and then I press "Go" then > the "old" v

Re: Accepting current edited text field contents

2011-03-04 Thread Quincey Morris
On Mar 4, 2011, at 11:09, Quincey Morris wrote: > Instead of binding your text fields directly to your data model, bind them > instead to a NSObjectController object in your NIB file, which is in turn > bound to the data model. Just to clarify, in case you haven't used this trick before: -- Yo

Re: Accepting current edited text field contents

2011-03-04 Thread Jonathan Taylor
On 4 Mar 2011, at 19:09, Quincey Morris wrote: > On Mar 4, 2011, at 03:40, Jonathan Taylor wrote: > >> I have a window with a large number of editable text fields, and a big "Go" >> button. The text fields are bound to values in my class. At the moment if >> there is an edit of one of the valu

Re: NSAttributedString crashes

2011-03-04 Thread Corbin Dunn
On Mar 1, 2011, at 12:45 AM, Gerriet M. Denkmann wrote: > NSMutableAttributedString *attributedString = [ [ NSMutableAttributedString > alloc ] initWithString: firstChar ]; > [ attributedString fixFontAttributeInRange: NSMakeRange(0,[ attributedString > length ]) ]; > NSFont *aFont = [ attribu

XML Namespace Definitions on Non-Root Elements

2011-03-04 Thread Heath Borders
I'm trying to parse a document with a namespace declared on a non-root element: http://example.com/foo";>This is an exemplary foo! I can read this xml into an NSXMLDocument just fine, but the following XPath query on root returns a non-nil, but empty NSArray: NSXMLNode *rootNode = ...// create m

Re: -[NSSet containsObject:] returns NO when it should return YES

2011-03-04 Thread Michael Crawford
Creating the NSNumber objects using unsignedLongLong instead of longLong solved my problem. Thanks to everyone who participated in the lively discussion. Sorry for being a little slow in closing the loop. -Michael On Feb 21, 2011, at 9:50 PM, Wim Lewis wrote: > > On 19 Feb 2011, at 2:17 PM,

Re: NSButton disappears when I turn on "Wants Core Animation Layer" in IB

2011-03-04 Thread Michael Crawford
Marking the containing window for these view as visible-at-launch in IB seems to make all the difference. I previously had this option turned off because I did not want to display the main window until after app startup. I will try to figure exactly why this makes the difference but, again, if

Re: Accepting current edited text field contents

2011-03-04 Thread jonat...@mugginsoft.com
On 4 Mar 2011, at 19:25, Jonathan Taylor wrote: > > On 4 Mar 2011, at 19:09, Quincey Morris wrote: > >> On Mar 4, 2011, at 03:40, Jonathan Taylor wrote: >> >>> I have a window with a large number of editable text fields, and a big "Go" >>> button. The text fields are bound to values in my cl

Re: NSXMLElement children doesn't return whitespace text nodes

2011-03-04 Thread Heath Borders
>From the Tree-Based XML Programming Guide: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/NSXML_Concepts/Articles/CreatingXMLDoc.html#//apple_ref/doc/uid/TP40001255-BCIGHBDI Preservation. The enum constants beginning with NSXMLNodePreserve support document fidelity. They

NSXMLParser and entity resolving (OS X 10.6.6)

2011-03-04 Thread Greg Anderson
After spending a good deal of time with Uncle Google and some of his friends, I still have unanswered problems using NSXMLParser with an XML file that has entities in it. It appears that most of my questions have been asked over the last few years, but I haven't found any postings about

Memory used by a UIImage?

2011-03-04 Thread Rick Mann
Is there a way to determine how much memory a given UIImage is using for the in-memory image data? Thanks, Rick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mo

Re: Memory used by a UIImage?

2011-03-04 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 3/4/11 2:18 PM, Rick Mann wrote: > Is there a way to determine how much memory a given UIImage is using for the > in-memory image data? Shot in the dark: access its CGImage to get the the underlying CGImageRef, then use the CGImage functions to ca

Question about Cocoa leaks

2011-03-04 Thread Laurent Daudelin
I asked a similar question to this one in the xcode-users list because I thought it related to Instruments but, actually, the question maybe has more to do with Cocoa. After reading the very interesting and informative blog from Bill Bumgarner (bbum) titled "When is a Leak not a Leak? Using Hea

Re: NSTableView: which delegate after a drag operation?

2011-03-04 Thread Scott Anguish
On Mar 4, 2011, at 9:00 AM, Ulf Dunkel wrote: > Hi Scott. > >>> Here are my two questions: >>> >>> 1) Which delegate can I use to inform table view B to update and reload its >>> data when I have dragged an item inside table view A? >> >> If you’re adding it to the object array, you can easil

Re: Question about Cocoa leaks

2011-03-04 Thread Quincey Morris
On Mar 4, 2011, at 17:54, Laurent Daudelin wrote: > So, can anybody explain what is going on here and whether I should be > concerned by those leaks? For each heapshot, I scan 31770 items on disk and > each heapshot results in between 8.84KB and 16.97KB leaked each time. The > other strange obs

Re: Memory used by a UIImage?

2011-03-04 Thread Steve Christensen
I doubt you could find out *exactly* how much memory is being used. You could probably get an approximation by multiplying pixelHeight * pixelWidth * 4 (assuming A, R, G, B channels), since the image bitmap is likely to be the biggest chunk for images of any real size. On Mar 4, 2011, at 2:18

Re: Memory used by a UIImage?

2011-03-04 Thread Rick Mann
Unfortunately, if I create the image from a PNG, it's possible iOS stores it compressed, and only decompresses when rendering. I'd like to know how much it's using at any given moment. Thanks, though. -- Rick On Mar 4, 2011, at 20:14:26, Steve Christensen wrote: > I doubt you could find out

Few question about iCal

2011-03-04 Thread Ivan Chen
Hi, Guys I am kind of want to extend the functionality of the iCal, like a plug-in or something. But I notice there is no offical plug-in SDK for iCal. I am thinking to develop a background app which will show a floating window when it detect the iCal is the front most app, this floating window s

Contextual Menu plugin for Finder in Snow Leopard

2011-03-04 Thread Vinay Jain
Hi All, I want to develop a plugin for extending the functionality of the finder in snow leopard by adding the contextual menu to it. I couldn't find any resource or sample on the web, which provides some sort of help on my above queries. It's highly appreciated if someone could share h

Re: Contextual Menu plugin for Finder in Snow Leopard

2011-03-04 Thread Kyle Sluder
On Fri, Mar 4, 2011 at 8:50 PM, Vinay Jain wrote: > Hi All, > > I want to develop a plugin for extending the functionality of the finder in > snow leopard by adding the contextual menu to it. > > I couldn't find any resource or sample on the web, which provides some sort > of help on my above quer

Want to write a service on contextual menu for finder

2011-03-04 Thread Vinay Jain
Hi All, I want to develop a service in snow leopard to add contextual menu to the finder. As i do research on, its not possible to add contextual menu in snow leopard directly. Instead i have to write a service for it. I got a tutorial of system services from the apple's website: http:/