• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Subclassing appendFormat: for NSMutableString?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: Subclassing appendFormat: for NSMutableString? (From: Ben Dougall <email@hidden>)

  • Prev by Date: Simulating cmd-click-lock on window title-bar?
  • Next by Date: Re: I broke NSLog()!
  • Previous by thread: Re: Subclassing appendFormat: for NSMutableString?
  • Next by thread: Simulating cmd-click-lock on window title-bar?
  • Index(es):
    • Date
    • Thread