diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-09-12 21:50:40 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-09-12 21:50:40 +0200 |
| commit | 182872c760d437556d606cc02c6b7c570667a715 (patch) | |
| tree | 11795bdb259445e5c3f8dd0177e9426ec77b0399 /QSThingsPlugin/Parsers/QSThingsAppSectionsParser.m | |
| parent | 5870e5cf03ceaff7080174b573618631a413110e (diff) | |
Add children
Diffstat (limited to 'QSThingsPlugin/Parsers/QSThingsAppSectionsParser.m')
| -rw-r--r-- | QSThingsPlugin/Parsers/QSThingsAppSectionsParser.m | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/QSThingsPlugin/Parsers/QSThingsAppSectionsParser.m b/QSThingsPlugin/Parsers/QSThingsAppSectionsParser.m index 70a37ae..472a8fa 100644 --- a/QSThingsPlugin/Parsers/QSThingsAppSectionsParser.m +++ b/QSThingsPlugin/Parsers/QSThingsAppSectionsParser.m @@ -11,12 +11,14 @@ // confirm that this makes sense. - (NSArray *)objectsFromPath:(NSString *)path withSettings:(NSDictionary *)settings { NSMutableArray *objects = [NSMutableArray array]; + NSDictionary *dictionary = @{@"path": path}; // Inbox QSObject *inbox = [QSObject makeObjectWithIdentifier: ThingsAppSectionKeyInbox]; [inbox setName:@"Inbox"]; [inbox setPrimaryType:kAppSectionType]; + [inbox setObject:[dictionary copy] forType:kAppSectionType]; [objects addObject:inbox]; // Today @@ -24,6 +26,7 @@ makeObjectWithIdentifier: ThingsAppSectionKeyToday]; [today setName:@"Today"]; [today setPrimaryType:kAppSectionType]; + [today setObject:[dictionary copy] forType:kAppSectionType]; [objects addObject:today]; // Upcoming @@ -31,6 +34,7 @@ makeObjectWithIdentifier: ThingsAppSectionKeyUpcoming]; [upcoming setName:@"Upcoming"]; [upcoming setPrimaryType:kAppSectionType]; + [upcoming setObject:[dictionary copy] forType:kAppSectionType]; [objects addObject:upcoming]; // Anytime @@ -38,6 +42,7 @@ makeObjectWithIdentifier: ThingsAppSectionKeyAnytime]; [anytime setName:@"Anytime"]; [anytime setPrimaryType:kAppSectionType]; + [anytime setObject:[dictionary copy] forType:kAppSectionType]; [objects addObject:anytime]; // Anytime @@ -45,6 +50,7 @@ makeObjectWithIdentifier: ThingsAppSectionKeySomeday]; [someday setName:@"Someday"]; [someday setPrimaryType:kAppSectionType]; + [someday setObject:[dictionary copy] forType:kAppSectionType]; [objects addObject:someday]; return objects; |