Note that there are some explanatory texts on larger screens.

plurals
  1. POAssertion failure in -[NSIndexPath row] with AppList dataSource
    primarykey
    data
    text
    <p>See update below.</p> <p>I'm writing a tweak and am using AppList. I am hooking into spotlight and creating a table off all installed applications. I am trying to use the dataSource to get the information (display identifier etc). The problem is if dataSource is defined... I get the following error: </p> <p><code> SpringBoard[1622] &lt;Warning&gt;: *** Assertion failure in -[NSIndexPath row], /SourceCache/UIKit/UIKit-2380.17/UITableViewSupport.m:2680 SpringBoard[1622] &lt;Warning&gt;: ***** AltKeyboard Uncaught Exception: Invalid index path for use with UITableView. Index paths passed to table view must contain exactly two indices specifying the section and row. Please use the category on NSIndexPath in UITableView.h if possible. ***** </code><br> or<br> <code> SpringBoard[1890] &lt;Warning&gt;: ***** AltKeyboard Uncaught Exception: *** -[__NSArrayM objectAtIndex:]: index 2 beyond bounds [0 .. 1] ***** SpringBoard[1890] &lt;Error&gt;: *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 2 beyond bounds [0 .. 1]' *** First throw call stack: </code></p> <p>If dataSource is not defined and I use fake data (test name), the table is generated fine. When I print the dataSource there are only two items in it.</p> <p>Ryan Petrich, on IRC, seemed to suggest that I was doing everything completely wrong but wasn't much help after that. Perhaps I am going about solving this problem incorrectly?</p> <p>Code: <a href="http://pastebin.ca/2457626" rel="nofollow">http://pastebin.ca/2457626</a><br> Repository: <a href="https://github.com/twodayslate/ListLauncher" rel="nofollow">https://github.com/twodayslate/ListLauncher</a></p> <p><strong>edit/update!</strong> dataSource is giving me problems. It isn't fetching the same number of apps and thus I am getting index errors and the like. I have over 200 apps but dataSource is only fetching 2.<br> The following code gives no errors but only displays 2 items: <a href="http://pastebin.ca/2458961" rel="nofollow">http://pastebin.ca/2458961</a></p> <p><strong>edit!</strong> I changed it so I just use ALApplicationList. I am able to get all the applications listed. However, when I attempt to scroll through the table, it crashes. Sorting and creating the list is really slow so I believe that might be causing the problem. I'm no pro at obj-c so I'm sure there is a better way than what I am doing. <a href="http://pastebin.ca/2459318" rel="nofollow">http://pastebin.ca/2459318</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload