Re: Subclassing appendFormat: for NSMutableString?
Re: Subclassing appendFormat: for NSMutableString?
- Subject: Re: Subclassing appendFormat: for NSMutableString?
- From: "Dr. H. Nikolaus Schaller" <email@hidden>
- Date: Sun, 16 May 2004 18:54:06 +0200
Ben,
Onrda has posted sample code that just does that and it solves my
problem.
Thanks!
Nikolaus
Am 16.05.2004 um 18:32 schrieb Ben Dougall:
Well, but how do I wrap appendFormat: which is the most important
method I intend to provide by the subclass?
when i first looked at the methods of mutable string i was expecting
to see an appendFormat:arguments: method but there isn't one. there is
an initWithFormat:arguments: method though -- so you could use that
instead (create a whole new string when appendFormat: is called on
your composite object, rather than actually appending, but the end
effect/result will be the same). what the arguments part lets you do
is pass a pointer to a variable argument list, rather than an actual
hard coded variable argument list -- i think.
+------------------+
! email@hidden !
! make !
! software !
+------------------+
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.