Thanks for your replies guys - that makes a lot of sense now 8)
On 2 Mar 2011, at 12:06, Andreas Grosam wrote:
>
> On Mar 2, 2011, at 12:42 PM, Andreas Grosam wrote:
>
>> - (void) viewDidLoad {
>> [super viewDidLoad];
>>
>> // Create the button:
>> // ...
>>
>> [self performSelector:@
Hi Quincey
> I think I win by a mile. ☺
You certainly do ☺ I have been away from "bare metal" C programming for so long
that I had forgotten about the way C handles array manipulation.
> However, in any likely scenario, the actual difference in performance is
> likely to be unmeasurable. To ma
On 02.03.2011, at 10:54, Andreas Grosam wrote:
> I have a very basic custom UIViewController with its own associated nib file.
> This view controller is the "root view controller" of a Navigation Controller
> which is itself embedded within a Split View Controller which is defined in
> another n
On Mar 3, 2011, at 12:31 PM, Uli Kusterer wrote:
> On 02.03.2011, at 10:54, Andreas Grosam wrote:
>> I have a very basic custom UIViewController with its own associated nib
>> file. This view controller is the "root view controller" of a Navigation
>> Controller which is itself embedded within
On Mar 2, 2011, at 4:53 PM, glenn andreas wrote:
>
> On Mar 2, 2011, at 3:54 AM, Andreas Grosam wrote:
>
> What's going on is that awakeFromNib is called when the nib containing the
> object is instantiated. In this case, it is the main nib (which is where the
> root view controller "lives")
Just in case someone was following...
As I couldn't figure out a simple way to animate my view growing
while drawing (my drawing needs to be updated for each step of the
way, depending on the view's size...), as a workaround I hid the view
out of sight by embeding it in a dumb transparent
As ever, thanks very much David. I figured there was *something* going on when
drawRect: was defined but I wouldn't have figured out what without this help.
In this case a crossfade in every case for that particular view works
perfectly, I implemented what you suggested and it looks so much bet
On 3 Mar 2011, at 04:06, Nick Rogers wrote:
> Hi,
> I have a table view with the custom cell class assigned to its only column in
> awakeFromNib method using setDataCell:.
> Then I'm doing some drawing in drawInteriorWithFrame: of the NSCell subclass.
> The problem is that drawing include four l
On Mar 3, 2011, at 12:12 AM, Deepa wrote:
> I am developing an Desktop application which organizes and plays movie files.
> So, I have added the mp4, mov, avi, m4v (mp4, mov, avi, m4v extensions) as
> document type under Properties of my application target.
> The problem is that when the user in
On Thu, Mar 3, 2011 at 4:37 AM, Andreas Grosam wrote:
> At the time awakeFromNib is sent to the root view controller, the root view
> controller's outlets whose target exists in the main nib are connected.
> However, none of the outlets whose target objects exist in its corresponding
> nib "MyR
On Thu, 03 Mar 2011 10:54:32 -0300, Carlos Eduardo Mello
said:
>Just in case someone was following...
>
> As I couldn't figure out a simple way to animate my view growing
>while drawing (my drawing needs to be updated for each step of the
>way, depending on the view's size...), as a workarou
On Tue, 01 Mar 2011 16:15:09 +0700, "Gerriet M. Denkmann"
said:
>
>On 1 Mar 2011, at 15:53, Kyle Sluder wrote:
>
>> On Tue, Mar 1, 2011 at 12:45 AM, Gerriet M. Denkmann
>> wrote:
>>> So obviously NSAttributedString does NOT return [ [ aFont retain ]
>>> autorelease ] but just some internal poin
Hi Matt,
thanks for the reply. I 'll definetly dig into that as soon as I am
done with core GUI stuff (need to get my app working for a -prototype
demo)...I was trying to add a quick touch of animation so that my demo
would look cooler and just thought that it might be possible to do it
On Mar 3, 2011, at 10:52 AM, Carlos Eduardo Mello wrote:
> thanks for the reply. I 'll definetly dig into that as soon as I am done
> with core GUI stuff (need to get my app working for a -prototype demo)...I
> was trying to add a quick touch of animation so that my demo would look
> cooler a
On Thu, 03 Mar 2011 10:32:18 +, Martin Linklater
said:
>Thanks for your replies guys - that makes a lot of sense now
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
On Mar 3, 2011, at 10:10, Matt Neuburg wrote:
> What you *can* rely on is that a ***factory method*** will hand you an
> autoreleased object. So, [NSArray array] hands you an autoreleased array; it
> won't vanish right this second, but it will vanish when your code comes to an
> end, unless you
I have a view with a few textured NSButton objects placed on top of a
contentView. Since a couple of the buttons overlap and one uses transparency
and requires a shadow, I turned on the wants-layer feature for that button.
The button still looks a little funky in the corner where it overlaps a
I'm trying to set up a delegate on a UITextField so I can know when the user
has
finished editing.
My delegate is my main view controller:
@interface MainViewController : UIViewController
{
. . .
}
and in the implementation file I have:
- (void) textFieldDidEndEditing:(UITextField)textField
On 2011-03-03, at 5:01 PM, Jon Sigman wrote:
>
> What am I overlooking?
First question: Is your 'nameTextField' truly non-nil when you set its delegate?
Second question: What do you define as "finished editing"?
___
Cocoa-dev mailing list (Cocoa-de
On Thu, March 3, 2011 2:19:30 PM Phillip Mills wrote:
> First question: Is your 'nameTextField' truly non-nil when you set its
>delegate?
Good call. It was being set before the -viewDidLoad method got invoked. It all
works now!
> Second question: What do you define as "finished editing"?
Wh
On 4 Mar 2011, at 01:10, Matt Neuburg wrote:
> On Tue, 01 Mar 2011 16:15:09 +0700, "Gerriet M. Denkmann"
> said:
>>
>> On 1 Mar 2011, at 15:53, Kyle Sluder wrote:
>>
>>> On Tue, Mar 1, 2011 at 12:45 AM, Gerriet M. Denkmann
>>> wrote:
So obviously NSAttributedString does NOT return [ [ a
On Thu, Mar 3, 2011 at 4:20 PM, Gerriet M. Denkmann
wrote:
> But, taking my original example:
>
> NSAttributedString * attributedString = ...
> NSFont *aFont = [ attributedString attribute: NSFontAttributeName atIndex: 0
> effectiveRange: NULL ];
> NSString *fontName = [aFont fontName];
> [ att
On Mar 3, 2011, at 4:35 PM, Kyle Sluder wrote:
> On Thu, Mar 3, 2011 at 4:20 PM, Gerriet M. Denkmann
> wrote:
>> But, taking my original example:
>>
>> NSAttributedString * attributedString = ...
>> NSFont *aFont = [ attributedString attribute: NSFontAttributeName atIndex:
>> 0 effectiveRang
Okay, part II:
Is there a way to allow only a certain number of characters in a UITextField?
Should this be done in the -textFieldDidEndEditing delegate callback, with an
alert to the user, or just truncating the field, or ...?
-Jon
___
Coc
there is, you need to use a formatter for that, you can even set the allowed
characters to be inputted to the textfield.
check NSFormatter if it is of any help, you can also extend the class to adjust
to your needs.
From: Jon Sigman
To: Cocoa Developers
Sent
In a tiny document-based Cocoa app for Snow Leopard, I have a document
window with two NSTableView objects, which get properly feeded by
NSTableViewDataSource according to the documentation. Both table views
show simple arrays of one column each.
I can fill both table views with random content
On 04/03/2011, at 11:54 AM, Matt Neuburg wrote:
> because NSString is a very, very special case. Memory management for strings
> is utterly different from memory management for a normal object
Is it?
Are you basing this on your observations, or on some documentation?
I don't see this though
On Mar 3, 2011, at 7:32 PM, Graham Cox wrote:
> On 04/03/2011, at 11:54 AM, Matt Neuburg wrote:
>
>> because NSString is a very, very special case. Memory management for strings
>> is utterly different from memory management for a normal object
>
>
> Is it?
>
> Are you basing this on your ob
On Mar 3, 2011, at 1:10 PM, Matt Neuburg wrote:
> So what I'm trying to show you is that when you've got an object that owns
> stuff, you *never* expect that that object will dispense the stuff it owns
> while handing you a share in ownership.
I would argue it's irrelevant whether the dispensin
Hi! First post to the list, please be gentle ;)
Small question: when I add a subview to the contentView of a UITableViewCell,
the rendered width of the subview's frame will be different, depending on
whether I set the autoresizingMask in combination with an accessoryView. So,
when I set up a cl
I have the following xml:
A foo. A bar.
Is there a way to access the whitespace-only NSXMLTextKind NSXMLNode?
I've also tried changing my document thusly:
A foo. A bar.
I specify
NSXMLNodePreserveWhitespace
as my option to NSXMLDocument's
initWithXMLString:options:error:
selector.
Thanks!
I recall that I had problems with that too, and IIRC, the
NSXMLNodePreserveWhitespace didn't seem to work, but right now I have
xml:space="preserve" in the XML and parse it with just the NSXMLDocumentTidyXML
option, and that works. I believe I just went through all the combinations and
permutat
Flexible width means "change my width if my superview's width changes" and
accessory views cause the contentView to shrink from its original state as the
full width of the cell (since the contentView must make space for the
accessoryView). Therefore, your subview auto shrinks with it since you s
On Mar 3, 2011, at 10:24 PM, Ulf Dunkel wrote:
> In a tiny document-based Cocoa app for Snow Leopard, I have a document window
> with two NSTableView objects, which get properly feeded by
> NSTableViewDataSource according to the documentation. Both table views show
> simple arrays of one colum
> Flexible width means "change my width if my superview's width changes" and
> accessory views cause the contentView to shrink from its original state as
> the full width of the cell (since the contentView must make space for the
> accessoryView). Therefore, your subview auto shrinks with it sin
> Message: 8
> Date: Thu, 03 Mar 2011 18:29:23 -0800 (PST)
> From: Jon Sigman
> Subject: Re: Setting a delegate on a UITextField
> To: Cocoa Developers
> Message-ID: <977310.3842...@web31911.mail.mud.yahoo.com>
> Content-Type: text/plain; charset=us-ascii
>
> Okay, part II:
>
> Is there a way t
The strategy I recommend for anyone adding views to UITableViewCell is to
subclass and implement layoutSubviews. You will then be able to easily set your
subview frames as you desire for any orientation because layoutSubviews will be
called on rotation.
Luke
On Mar 3, 2011, at 8:50 PM, Ray w
Right, I kind of anticipated you were going to say that ;) I will probably do a
little subclassing then...
Thanks again, Luke!
On Mar 4, 2011, at 2:29 PM, Luke Hiesterman wrote:
> The strategy I recommend for anyone adding views to UITableViewCell is to
> subclass and implement layoutSubviews.
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?
Regards,
Nick
On 03-Mar-2011, at 9:48 PM, jonat...@mugginsoft.com wrot
39 matches
Mail list logo