Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
djinni
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
djinni
Commits
90ca78a1
Commit
90ca78a1
authored
May 12, 2015
by
Jacob Potter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update example
parent
083ac0eb
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
example/generated-src/objc/TXSItemList.h
example/generated-src/objc/TXSItemList.h
+3
-3
example/generated-src/objc/TXSItemList.mm
example/generated-src/objc/TXSItemList.mm
+1
-1
example/generated-src/objc/TXSSortItems+Private.mm
example/generated-src/objc/TXSSortItems+Private.mm
+2
-2
example/generated-src/objc/TXSSortItems.h
example/generated-src/objc/TXSSortItems.h
+2
-2
example/generated-src/objc/TXSTextboxListener.h
example/generated-src/objc/TXSTextboxListener.h
+1
-1
No files found.
example/generated-src/objc/TXSItemList.h
View file @
90ca78a1
...
...
@@ -4,9 +4,9 @@
#import <Foundation/Foundation.h>
@interface
TXSItemList
:
NSObject
-
(
id
)
initWithItemList
:(
TXSItemList
*
)
itemList
;
-
(
id
)
initWithItems
:(
NSArray
*
)
items
;
-
(
nonnull
id
)
initWithItemList
:(
nonnull
TXSItemList
*
)
itemList
;
-
(
nonnull
id
)
initWithItems
:(
nonnull
NSArray
*
)
items
;
@property
(
nonatomic
,
readonly
)
NSArray
*
items
;
@property
(
nonatomic
,
readonly
,
nonnull
)
NSArray
*
items
;
@end
example/generated-src/objc/TXSItemList.mm
View file @
90ca78a1
...
...
@@ -20,7 +20,7 @@
return
self
;
}
-
(
id
)
initWithItems
:(
NSArray
*
)
items
-
(
id
)
initWithItems
:(
nonnull
NSArray
*
)
items
{
if
(
self
=
[
super
init
])
{
_items
=
items
;
...
...
example/generated-src/objc/TXSSortItems+Private.mm
View file @
90ca78a1
...
...
@@ -52,14 +52,14 @@ auto SortItems::fromCpp(const CppType& cpp) -> ObjcType
}
-
(
void
)
sort
:(
TXSSortOrder
)
order
items
:(
TXSItemList
*
)
items
{
items
:(
nonnull
TXSItemList
*
)
items
{
try
{
_cppRef
.
get
()
->
sort
(
::
djinni
::
Enum
<::
textsort
::
sort_order
,
TXSSortOrder
>::
toCpp
(
order
),
::
djinni_generated
::
ItemList
::
toCpp
(
items
));
}
DJINNI_TRANSLATE_EXCEPTIONS
()
}
+
(
TXSSortItems
*
)
createWithListener
:(
id
<
TXSTextboxListener
>
)
listener
{
+
(
nullable
TXSSortItems
*
)
createWithListener
:(
nullable
id
<
TXSTextboxListener
>
)
listener
{
try
{
auto
r
=
::
textsort
::
SortItems
::
create_with_listener
(
::
djinni_generated
::
TextboxListener
::
toCpp
(
listener
));
return
::
djinni_generated
::
SortItems
::
fromCpp
(
r
);
...
...
example/generated-src/objc/TXSSortItems.h
View file @
90ca78a1
...
...
@@ -11,8 +11,8 @@
@interface
TXSSortItems
:
NSObject
-
(
void
)
sort
:(
TXSSortOrder
)
order
items
:(
TXSItemList
*
)
items
;
items
:(
nonnull
TXSItemList
*
)
items
;
+
(
TXSSortItems
*
)
createWithListener
:(
id
<
TXSTextboxListener
>
)
listener
;
+
(
nullable
TXSSortItems
*
)
createWithListener
:(
nullable
id
<
TXSTextboxListener
>
)
listener
;
@end
example/generated-src/objc/TXSTextboxListener.h
View file @
90ca78a1
...
...
@@ -7,6 +7,6 @@
@protocol
TXSTextboxListener
-
(
void
)
update
:(
TXSItemList
*
)
items
;
-
(
void
)
update
:(
nonnull
TXSItemList
*
)
items
;
@end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment