Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 5    Views: 42

Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
03/02/14 01:38 AM (10 years ago)

Checklist Plugin: Can it be sorted?

Is there any way to sort the categories of the checklist plugin, like alphabetically, or even manually? Sorting the items in the categories would be nice too if possible. I know there isn't any ordering field in the CP, but is there any modification to the code that we can do to sort the lists? Thanks :)
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
03/02/14 10:24 AM (10 years ago)
Take a look at NSSortDescriptor to see if that will help you.
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/02/14 10:25 AM (10 years ago)
Will do, thanks for the tip :)
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
03/02/14 10:32 AM (10 years ago)
Also, read this terrific article on Querying Objective-C Data Collections http://www.cimgf.com/2013/02/05/querying-objective-c-data-collections/?utm_source=iOS+Dev+Weekly&utm_campaign=e4494e37ec-iOS_Dev_Weekly_Issue_80&utm_medium=email I love the name of the blog, Cocoa Is My GirlFriend ( Next time we need to find this link, search for girlfriend! ) -- Niraj
 
Angry Ninja
Aspiring developer
Profile
Posts: 1045
Reg: Aug 25, 2013
Maine
17,150
like
03/02/14 10:33 AM (10 years ago)
Haha... the classic "search for girlfriend"... every programmers dream executable ;) I think it usually ends up looking something like this... (excuse my code... I can't code from scratch in objective c yet... still learning, lol, but you can at least follow the logic) -Void searchForGirlfriend(){ If searchForGirlfriend="nil"; Return 0 } else if Girlfriend < 18 For Girlfriend = Girlfriend++ else if Girlfriend = Girlfriend@2x{ goto end;} else run searchForGirlfriend;{ print@"No, not you...don't run... come back"; Return 0} Make GirlFriend; CLANG Return SIGBART; } End
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
03/02/14 11:04 AM (10 years ago)
Touché!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.