Monotone-Parent: a3759861ff6c685f2878fdb4bfe7ea6fe966df8b

Monotone-Revision: 4a0075d77198c329e5e471528db155313b163846

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2008-06-13T19:55:59
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2008-06-13 19:55:59 +00:00
parent a8d6d7577d
commit 22a6e527e0
3 changed files with 21 additions and 0 deletions
+6
View File
@@ -1,3 +1,9 @@
2008-06-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* SoObjects/SOGo/NSArray+Utilities.m ([NSArray
-asPointersOfObjects]): new method that transforms an NSArray into
an array of ptr**;
2008-06-02 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* UI/MailPartViewers/UIxMailPartICalViewer.m
+2
View File
@@ -29,6 +29,8 @@
@interface NSArray (SOGoArrayUtilities)
- (id *) asPointersOfObjects;
- (NSString *) jsonRepresentation;
- (NSArray *) stringsWithFormat: (NSString *) format;
+13
View File
@@ -27,6 +27,19 @@
@implementation NSArray (SOGoArrayUtilities)
- (id *) asPointersOfObjects
{
id *pointers;
unsigned int max;
max = [self count];
pointers = malloc (sizeof(id) * (max + 1));
[self getObjects: pointers];
*(pointers + max) = nil;
return pointers;
}
- (NSArray *) stringsWithFormat: (NSString *) format
{
NSMutableArray *formattedStrings;