Skip to content
Snippets Groups Projects
Commit 3c41b403 authored by cramakri's avatar cramakri
Browse files

Renamed isSelectionGroup to selectionHasChildren

SVN: 27178
parent d9f976e9
No related branches found
No related tags found
No related merge requests found
...@@ -127,9 +127,9 @@ ...@@ -127,9 +127,9 @@
// Segue to the detail view unless we are on the ipad // Segue to the detail view unless we are on the ipad
if ([[UIDevice currentDevice] userInterfaceIdiom] != UIUserInterfaceIdiomPad) return; if ([[UIDevice currentDevice] userInterfaceIdiom] != UIUserInterfaceIdiomPad) return;
// Drill into the hierarchy
[self.openBisModel selectObjectAtIndexPath: indexPath]; [self.openBisModel selectObjectAtIndexPath: indexPath];
if ([self.openBisModel isSelectionGroup]) { if ([self.openBisModel selectionHasChildren]) {
// Drill into the hierarchy
UIStoryboard *storyboard = self.storyboard; UIStoryboard *storyboard = self.storyboard;
CISDOBMasterViewController *child = [storyboard instantiateViewControllerWithIdentifier: @"Master"]; CISDOBMasterViewController *child = [storyboard instantiateViewControllerWithIdentifier: @"Master"];
[child initializeDrillDownFrom: self]; [child initializeDrillDownFrom: self];
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
//! Select the object and return it //! Select the object and return it
- (CISDOBIpadEntity *)selectObjectAtIndexPath:(NSIndexPath *)indexPath; - (CISDOBIpadEntity *)selectObjectAtIndexPath:(NSIndexPath *)indexPath;
- (BOOL)isSelectionGroup; //!< Return YES if the selected object is a group (has children) - (BOOL)selectionHasChildren; //!< Return YES if the selected object is a group (has children)
// Actions // Actions
- (BOOL)insertNewObjectOrError:(NSError **)error; //!< Return YES if operation succeeded - (BOOL)insertNewObjectOrError:(NSError **)error; //!< Return YES if operation succeeded
......
...@@ -81,7 +81,7 @@ ...@@ -81,7 +81,7 @@
return _selectedObject; return _selectedObject;
} }
- (BOOL)isSelectionGroup - (BOOL)selectionHasChildren
{ {
return [_selectedObject.childrenPermIds count] > 0; return [_selectedObject.childrenPermIds count] > 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment