From 63a1e4b893d8e63bc4b0d25185cb4f3d21d0072d Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 24 Feb 2008 01:43:54 +0000 Subject: [PATCH 1/1] Adding Pamphlet for Brian. --- Cydia.app/reload.png | Bin 976 -> 982 bytes Cydia.mm | 25 ++++++++++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/Cydia.app/reload.png b/Cydia.app/reload.png index 71dc424c584f6b0c50ecc963dff49e2604c56690..8d06eb49417a9765b793e97b8f1e840770aeb5de 100644 GIT binary patch delta 918 zcmV;H18Mxw2i6CWBMuS(000&U1^@s6&0owxkue$~dL;k=fP(-4^d$fQgwX&1ZC?NY z=xhK0Jc|GT8(4$q2Y8Wf7=JuTL_t)YluJw#VGw|4!RK}b6yvK(MH?v~Mq<(n3aPrH zv8dPtx*9Q{cA;32gD+HI^+5E3QAq^^q@)&9T&h)@uBH*~L4winvM7lb!y^_I=vs|n z*Hh~fq@Z(~`Deb&>mLNBAdxGCRh=LD)E6J}D?LAOH;wnIoSYB#;FOW=m(!nkjzT+#Un~@a6LW z6rRi-xqI(nPS2+=+6h7Pf-!t$*pjTIq@?7v>!cuwjsfA)Wq=AWpU>#X2$U3GfNNT9 z*;_}S#=~(x$AA`w27eQ&isT|iDj|yBxMk9EO$~Q|I-6%{ZhM#L1I-J@@a#-g)d5m1 z6os#Zsfxv7u_h)aZUg{80s{ijj5NZ0I-lC`FA$ohX|-Cd?(gsK2LM1s!bSUZx@sN2 z9FF5Sy%y#|6%s%mTN%K1(hhG8trvi^F8u&m1?5MaJFSS|{Sb##Ax?JsD?^l6LN$4Y#C z8~x=OMp&0?RDXbBzKqsHMW|Zeye;iFZ=UDt9KFBItqz787)U4L#H06@qbG;aRfpqGMQ8=m5Rk; sF#teUS65e4Q&W@GYPFh7CX?IkcJt$Y1M@7!9{>OV07*qoM6N<$g5$`ey#N3J delta 912 zcmV;B18@A+2hazQBMuz^000*V1^@s6_XtF3kue$~ZYKZ$bFTmZ_doyuhK>LLZS4R6 z>g50cF~|S_7-eNA=*y997=JcNL_t)&mTyQCaTv$HzKH6A36VmUQ0z!K=*7TF#wzY9GcJP^8heDKEBY=(cw*}(_R2e2MIj{;2eOn08Rlop3mnW7hf(d zEv@PG`rz#BtQWw006+H&l@kPUQKQjZQ>)cyR4Uaek|dAIWU|A*2jz0Pd{0kLw6Cwv zo6F^b05au5&(kz*Fn<^fml=kkN-0S+8vUf#>pNFgR;J5=%5^%O-EOyEr6{VZ)LyTx zt!28py39VG&nFdnh^A==$8m-taCv!oH53ZHibNt2Q53~wGMU_c$>nmnSe9ke>2z9h zPYHrhdOV(&#gfj=&BdHf=R=<7`Q7RT06`E0qtR%L#bU9t)qmUC+WIsQ2y_=ROj#_J z&fkGW=<4d~ca~-Ex!rE}zRh8HcsOb@nJxhU$8m0(&DOCyroX?x-{EjLve|6*KpaUF z#TA7@Q3C+Y&CS=t;qVv^@KpRkfm_8ntgfy;lS-vNm-xM70PYr^w*fqn0^O9!WJe0n z3#nA9BvY@ds((@?lgSSNkjZ4WDl03GN-1wbp-{*R<-H#chkHwbHZ?WbCnqN#0l@tH z{Gw8+B&7%`U^1Cn3qpElv)POQKK_MSKQJ)x!fLf%0)UZ`kx{eR+$LpYbb&y?R~VU$ z#bSBM^ZfHY!1Y?K_Riqo;O*MlS{VSewYA+E9Ub*cF@FcbZr5; diff --git a/Cydia.mm b/Cydia.mm index a8474b1f..04c0dbe9 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -501,6 +501,7 @@ inline float interpolate(float begin, float end, float fraction) { - (void) dealloc; - (void) navigationBar:(UINavigationBar *)navbar poppedItem:(UINavigationItem *)item; +- (void) alertSheet:(UIAlertSheet *)sheet buttonClicked:(int)button; - (id) initWithFrame:(CGRect)frame; - (void) setDelegate:(id)delegate; @@ -537,6 +538,10 @@ inline float interpolate(float begin, float end, float fraction) { } } +- (void) alertSheet:(UIAlertSheet *)sheet buttonClicked:(int)button { + [sheet dismiss]; +} + - (id) initWithFrame:(CGRect)frame { if ((self = [super initWithFrame:frame]) != nil) { views_ = [[NSMutableArray arrayWithCapacity:4] retain]; @@ -579,6 +584,16 @@ inline float interpolate(float begin, float end, float fraction) { } - (void) configurePushed { + UIAlertSheet *sheet = [[[UIAlertSheet alloc] + initWithTitle:@"Sources Unimplemented" + buttons:[NSArray arrayWithObjects:@"Okay", nil] + defaultButtonIndex:0 + delegate:self + context:self + ] autorelease]; + + [sheet setBodyText:@"This feature will be implemented soon. In the mean time, you may add sources by adding .list files to '/etc/apt/sources.list.d' or modifying '/etc/apt/sources.list'."]; + [sheet popupAlertAnimated:YES]; } - (void) reloadPushed { @@ -1135,7 +1150,7 @@ NSString *Scour(const char *field, const char *begin, const char *end) { } - (NSComparisonResult) compareBySectionAndName:(Package *)package { - NSComparisonResult result = [[self section] caseInsensitiveCompare:[package section]]; + NSComparisonResult result = [[self section] compare:[package section]]; if (result != NSOrderedSame) return result; return [self compareByName:package]; @@ -3180,11 +3195,13 @@ NSString *Scour(const char *field, const char *begin, const char *end) { if (size_t count = [changes_ count]) { NSString *badge([[NSNumber numberWithInt:count] stringValue]); [buttonbar_ setBadgeValue:badge forButton:3]; - [buttonbar_ setBadgeAnimated:YES forButton:3]; + if ([buttonbar_ respondsToSelector:@selector(setBadgeAnimated:forButton:)]) + [buttonbar_ setBadgeAnimated:YES forButton:3]; [self setApplicationBadge:badge]; } else { [buttonbar_ setBadgeValue:nil forButton:3]; - [buttonbar_ setBadgeAnimated:NO forButton:3]; + if ([buttonbar_ respondsToSelector:@selector(setBadgeAnimated:forButton:)]) + [buttonbar_ setBadgeAnimated:NO forButton:3]; [self removeApplicationBadge]; } @@ -3658,6 +3675,8 @@ int main(int argc, char *argv[]) { else Packages_ = [Metadata_ objectForKey:@"Packages"]; + system("dpkg --configure -a"); + UIApplicationMain(argc, argv, [Cydia class]); [pool release]; return 0; -- 2.45.2