#1 Jan 5, 2009 8:04 am

Sakurina
Member
From: Trois-Rivieres, QC
Joined: May 5, 2008
Website

[MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

Coming to the Ste Packaging repo very soon.
---

Anyone who's been to the screenshot thread has seen this already, but I might as well post the screenshot again.

http://r-ch.net/img/fcsb_jan5_early.PNG

This is my first ever Objective-C(++) project. Decided to tinker with MobileSubstrate after a discussion with roobi. We thought that having five columns would maximize space with themes like Abeo, Pump, or Nanocons, but there was no easy way to add a 5th column.

Looked a little into it and it looked fairly easy to do after all. This is mostly a modification of Five Icon Dock, both the dock and each page in SpringBoard are SBIconLists, therefore they both have maxIconColumns as a property you can override with MobileSubstrate.

There are a few issues:
- Due to the current hackish nature of this, it just so happens that if you only have 4 icons on your dock, the 1st icon will end up in the 4th column of a 5th row. This will be fixed, I know what's causing it, just not necessarily how to fix it.
- Wiggly icons makes the phone reaaaaally slow as hell.
- Having SpringJumps display titles will throw off the 5th column's icons by a couple pixels; my code doesn't take the padding property into account yet.
- Haven't actually tested it with Abeo/Nanocons/Pump yet to see what it looks like.

Otherwise, this was a pretty neat way to learn about MobileSubstrate and ObjC, and a nice hack to stay up at the middle of the night for. smile Stay tuned for updates.

Last edited by Sakurina (Jan 23, 2009 2:09 pm)

Offline

 

#2 Jan 5, 2009 8:06 am

TaylorDeeves
Guest 2.0

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

sick! i cant wait for this!

 

#3 Jan 5, 2009 8:20 am

scaredface
Member 
From: Czech Republic
Joined: Jun 22, 2008

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

wow release!

Offline

 

#4 Jan 5, 2009 8:29 am

Mac Guru
Moderator
From: The Interwebs
Joined: Dec 30, 2004
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

Can't wait for this one... I don't like having a lot of pages so this would be SWEET!

Offline

 

#5 Jan 5, 2009 8:43 am

christinme7890
Member
Joined: Nov 28, 2008

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

this is pretty sweet.  I like it. I think it would be cool to get rid of the shaking and just apply some kind of shadow or indicator over the icons to show that you are edit mode.

Offline

 

#6 Jan 5, 2009 8:50 am

Saleh
Member
Joined: Aug 25, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

Wow cant wait for this ,, ive always wanted it , thanks Sakurina

Offline

 

#7 Jan 5, 2009 8:56 am

Sakurina
Member
From: Trois-Rivieres, QC
Joined: May 5, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

christinme7890: That could probably be done, I'll see if I can override the animation and just do that instead.

http://r-ch.net/img/fcsb_abeo.png
Here it is with Abeo (I didn't download any extra icons though, sorry), and I must say, I would have never used Abeo beforehand because I had the impression that I was wasting screen real estate. Now, I might look into the nano-sized icons a bit more.

Planning on spending the afternoon attacking bugs, so more updates as the day goes on.

Offline

 

#8 Jan 5, 2009 8:59 am

ilena
Member
Joined: Jun 9, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

Is it possible to disable the wiggle feature?
It's sufficent to just show the x-button on the icons so it's obvious apps are in Edit-mode
and can be moved around.
Personally I never liked the wiggle of the apps, especially when using Veency.

Offline

 

#9 Jan 5, 2009 9:11 am

Alistair
Member
From: UK
Joined: Jun 3, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

Wow! I was thinking about how great this would be for Abeo but I didn't realise it could be done, I can't wait! smile_thumbup

Offline

 

#10 Jan 5, 2009 9:26 am

Sakurina
Member
From: Trois-Rivieres, QC
Joined: May 5, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

Fixed the dock bug. Trying to find where to mess with the animation now. hmm

Offline

 

#11 Jan 5, 2009 10:58 am

Plizzo
Moderator
From: Sweden
Joined: Feb 5, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

Great work Sakurina, you are truly a fast learner of programming codes! smile_thumbup

Offline

 

#12 Jan 5, 2009 11:37 am

Sakurina
Member
From: Trois-Rivieres, QC
Joined: May 5, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

Those last two issues are really tough to figure out, haha.

In the meantime:

- I have contacted saurik regarding what license Five-Icon Dock is under. Unlike WinterBoard, it's not mentioned in his source, and I'd feel bad releasing what's essentially a mod of his work without his blessing.
- Dock bug is fixed, this was a relatively easy fix, and works fine as far as I have tested it. This may vary depending on what theme is used though.
- Moving icons is still really slow. I'm investigating as to how I could modify (or get rid of) the wiggly animation, and nothing I've tried so far has worked. hmm Move the icons once and leave them there for the time being.
- SpringJumps title bug is still there. Current workaround is to disable page titles. Can't fix it until I find out how to tell what an icon's parent view is.
- The OS appears to make icons disappear as soon as they're just a little off the screen, so if you scroll slowly, it'll look weird. This might have to do with the amount of icons on-screen at once and the OS balancing it so it doesn't run out of RAM. I don't think I can do anything to change this?
- There may be repercussions on apps that use SBIconList. In theory, no app other than SpringBoard should be using it, so it mostly shouldn't be an issue.
- Added logging to the setOrigin method call. When this is released, if anyone runs into trouble with how icons are positioned, they just have to install syslog, respring, and send me their log file. From that I should be able to tell what the problem is and try to fix it.
- Not sure how I'm going to distribute this. Since I'm new at this, I don't want to put the thing up on Cydia right away and get bombarded with bug reports, especially since I don't know how to fix all of them. There may be some limited release, or a .deb you'll have to install manually, but we'll see.

Offline

 

#13 Jan 5, 2009 11:56 am

Jverzier
Member
From: France, Lyon
Joined: Apr 7, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

Awesome work so far! Plizzo is right: it's amazing how fast you learn yikes No matter how hard I try, I don't understand a bit of Objective-C; that amazes me you're able to do so much change with so little experience in this field.

Anyway, keep up your work. Your contributing way beyond many people in the iPhone scene, eventhough you used Saurik's amazing work as a base.

Offline

 

#14 Jan 5, 2009 12:15 pm

Sakurina
Member
From: Trois-Rivieres, QC
Joined: May 5, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

I came here a little under a year ago because I was amazed at how good some of the themes were. I felt a little bad that I was using all of your great themes without contributing back, so I've been trying to contribute with code. I never thought I'd be doing a MobileSubstrate extension so soon, but it turns out it's much simpler than I expected (once you get the toolchain going).

Hopefully I can mess with other ideas and create even cooler stuff that can help out theme designers. wink

Offline

 

#15 Jan 5, 2009 12:18 pm

Jverzier
Member
From: France, Lyon
Joined: Apr 7, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

If you may feel like having much spare time, I'd like to know if it's possible to not show artwork covers on the lockscreen when locked: it messes with Eclectic, and most of the time the reflection looks akward with transparent sliders. I don't know if it's possible though.

Offline

 

#16 Jan 5, 2009 12:21 pm

Sakurina
Member
From: Trois-Rivieres, QC
Joined: May 5, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

Jverzier wrote:

If you may feel like having much spare time, I'd like to know if it's possible to not show artwork covers on the lockscreen when locked: it messes with Eclectic, and most of the time the reflection looks akward with transparent sliders. I don't know if it's possible though.

I'd have to find where exactly the method that draws the album art is, but I'll take a look and if I find it, I'll put something together for you. smile

Offline

 

#17 Jan 5, 2009 12:25 pm

albinoAZN
Member
From: Mississippi, USA
Joined: May 24, 2007
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

This is really great! I'm the kind of person that HATES wasting screen real estate, so this is perfect for me.

In contrast to what Jverzier mentioned, I wonder if it's possible to have the Album Artwork display while the iphone is charging.. maybe just behind the battery or something. Because I charge my phone while I drive and if it's on shuffle, I can't always tell what band is playing by just the title.

Offline

 

#18 Jan 5, 2009 12:26 pm

Jverzier
Member
From: France, Lyon
Joined: Apr 7, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

Sakurina wrote:

Jverzier wrote:

If you may feel like having much spare time, I'd like to know if it's possible to not show artwork covers on the lockscreen when locked: it messes with Eclectic, and most of the time the reflection looks akward with transparent sliders. I don't know if it's possible though.

I'd have to find where exactly the method that draws the album art is, but I'll take a look and if I find it, I'll put something together for you. smile

That is so kind of you; though it shouldn't interfere with your work on five-columns SpringBoard smile

Offline

 

#19 Jan 5, 2009 12:44 pm

Sakurina
Member
From: Trois-Rivieres, QC
Joined: May 5, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

Well, I'm just looking at the headers trying to see if it would be easy to do, I just have no idea where it is. (Is it in SpringBoard or in iPod? In which of the 200ish files is the right method?) I'll run ack on the headers later to try and narrow it down.

Offline

 

#20 Jan 5, 2009 12:58 pm

Jverzier
Member
From: France, Lyon
Joined: Apr 7, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

Sakurina wrote:

Well, I'm just looking at the headers trying to see if it would be easy to do, I just have no idea where it is. (Is it in SpringBoard or in iPod? In which of the 200ish files is the right method?) I'll run ack on the headers later to try and narrow it down.

If you have an easy mean to share the list of headers, I'll be happy to help you on this smile

Offline

 

#21 Jan 5, 2009 1:52 pm

Sakurina
Member
From: Trois-Rivieres, QC
Joined: May 5, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

One of my friends appears to have found the method that draws the album art, so I'll mess with that a little later. I'm not sure if I can get it to show up over the battery but I'll try to figure that out too if possible. smile

Offline

 

#22 Jan 5, 2009 2:46 pm

dwonder3
Member
Joined: Nov 1, 2008

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

"Easy" smile_kiss haha

Looks awesome with abeo! Cant wait for the release.

Offline

 

#23 Jan 5, 2009 4:03 pm

Sakurina
Member
From: Trois-Rivieres, QC
Joined: May 5, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

One more bug fix, and it's pretty major, haha.

FCSB (which is what I'm abbreviating it as) modifies behavior in all SBIconLists. The dock (SBButtonBar) is a modified SBIconList. All modifications I made to SBIconList were replicated in the dock.

If you had Five-Icon Dock installed, they cancelled each other out and everything worked fine. If you didn't have it installed, you could add a 5th icon to the dock and it would appear completely in the wrong place. (You also had a 4-row dock, though you couldn't add anything after the 1st row as far as I could tell.)

I just fixed it so that my modified properties aren't passed to the dock, so that Five-Icon Dock can do its thing without any conflicts, and so that the standard dock doesn't end up acting weird because of my crappy code. smile

Now for some sad news...
saurik just told me that messing with how many icons are laid out in SBIconList is "incredibly dangerous". Apparently SBIconList uses fixed arrays, and so as long as FCSB is running, it'll work fine. But as soon as you uninstall it or boot up in Safe Mode, icons may disappear or SpringBoard would refuse to launch.

Now: I've been testing on 2.2 and I haven't had any of these issues when I tried to recreate them. ashikase (SpringJumps developer) also just told me that 2.2 might be better at handling missing icons, because there were several enhancements to SBIconList in 2.2.

I learned pretty well from SpringRoll that breaking people's phones isn't what you want to be known for. If I do release this, it will not be via a community source on Cydia, and it will be made very clear to anyone who install this that they are living on the edge and that I'm not responsible for any damage that occurs.

edit: Okay, I've done my tests and saurik says it would be safe to release on 2.2, but I want someone on 2.1 and/or 2.0.x to test this for me. IM me on AIM: djsakurina if you're interested.

Last edited by Sakurina (Jan 5, 2009 4:05 pm)

Offline

 

#24 Jan 5, 2009 4:25 pm

Tikopowii
Member
From: USA
Joined: May 30, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

Ah talk about scary. I dont know if im brave enough to use this at first release. But it sounds great and it is amazing how you can do all this updating in a days work. Great job

EDIT:

Okay that makes me feel better and i will try it for sure
I am on 2.2 so now i will just wait smile

Last edited by Tikopowii (Jan 5, 2009 4:35 pm)

Offline

 

#25 Jan 5, 2009 4:30 pm

Sakurina
Member
From: Trois-Rivieres, QC
Joined: May 5, 2008
Website

Re: [MS Extension] Five-Column SpringBoard (0.56 Coming Soon to Cydia)

I'm off school until the 22nd, so I have plenty of time to kill.

Also, just to make testers that are on the fence less worried:
- There is a file you can back up, so that if my extension fails and eats your icons, you can restore your old SpringBoard alignment.
- You won't have to restore.
- All you need is MobileSubstrate and SSH, and to listen closely. smile
- If it works, you can keep it and use it.
- If it doesn't work, upgrade to 2.2 and then you can keep it and use it.

Offline

 

Board footer