Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

changed function names to candygirl naming conventions

  • Loading branch information...
commit cf97f3e2b645d77386d88ff0ac4c258c4733247c 1 parent 4024ce9
@ettore authored
Showing with 17 additions and 17 deletions.
  1. +7 −7 clcg_gfx.h
  2. +10 −10 clcg_gfx.m
View
14 clcg_gfx.h
@@ -43,7 +43,7 @@ UIImage *clcg_do_snapshot(UIView *v, NSString *title);
*
* Usage: from your UINavigationController subclass, override
* pushViewController:animated: and call this function before calling super.
- * Use this function in conjunction with poppingVCFromHiding().
+ * Use this function in conjunction with clcg_popping_vc_from_hiding().
*
* @param nc The Navigation Controller who's pushing the view controllers on
* the navigation stack.
@@ -51,9 +51,9 @@ UIImage *clcg_do_snapshot(UIView *v, NSString *title);
* @param hiding_vc_class The specific class for which we want to hide the
* bottom bar.
*/
-void pushingVCForHiding(UINavigationController *nc,
- UIViewController *vc,
- Class hiding_vc_class);
+void clcg_pushing_vc_for_hiding(UINavigationController *nc,
+ UIViewController *vc,
+ Class hiding_vc_class);
/**
@@ -68,7 +68,7 @@ void pushingVCForHiding(UINavigationController *nc,
* @param hiding_vc_class The specific class for which we want to hide the
* bottom bar.
*/
-void poppingVCFromHiding(UINavigationController *nc, Class hiding_vc_class);
+void clcg_popping_vc_from_hiding(UINavigationController *nc, Class hiding_vc_class);
/**
@@ -76,12 +76,12 @@ void poppingVCFromHiding(UINavigationController *nc, Class hiding_vc_class);
* The returned instance is not autoreleased: the celler will have to
* take care of releasing it when needed.
*/
-UIActivityIndicatorView *newSpinny(CGFloat size);
+UIActivityIndicatorView *clcg_new_spinny(CGFloat size);
/**
* Creates an UIActivityIndicatorView of given size in pixels, attaches it to
* the accessory view of the table-view cell, and autoreleases it.
*/
-void attachSpinnyToCell(CGFloat size, UITableViewCell *cell);
+void clcg_attach_spinny2cell(CGFloat size, UITableViewCell *cell);
View
20 clcg_gfx.m
@@ -69,22 +69,22 @@ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
}
-void pushingVCForHiding(UINavigationController *nc,
- UIViewController *vc,
- Class hiding_vc_class)
+void clcg_pushing_vc_for_hiding(UINavigationController *nc,
+ UIViewController *vc,
+ Class hiding_vc_class)
{
- BOOL is_board_ctrl = [vc isKindOfClass:hiding_vc_class];
+ BOOL is_vc_for_hiding = [vc isKindOfClass:hiding_vc_class];
- vc.hidesBottomBarWhenPushed = is_board_ctrl;
+ vc.hidesBottomBarWhenPushed = is_vc_for_hiding;
// controller currently displayed, about to be be superseded
UIViewController *curr = [nc topViewController];
- if (!is_board_ctrl)
+ if (!is_vc_for_hiding)
curr.hidesBottomBarWhenPushed = NO;
}
-void poppingVCFromHiding(UINavigationController *nc, Class hiding_vc_class)
+void clcg_popping_vc_from_hiding(UINavigationController *nc, Class hiding_vc_class)
{
// this is the controller about to be removed
//UIViewController *curr = [nc topViewController];
@@ -106,7 +106,7 @@ void poppingVCFromHiding(UINavigationController *nc, Class hiding_vc_class)
// =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#pragma mark - Spinny
-UIActivityIndicatorView *newSpinny(CGFloat size)
+UIActivityIndicatorView *clcg_new_spinny(CGFloat size)
{
CGRect f;
UIActivityIndicatorView *spinny;
@@ -124,11 +124,11 @@ void poppingVCFromHiding(UINavigationController *nc, Class hiding_vc_class)
}
-void attachSpinnyToCell(CGFloat size, UITableViewCell *cell)
+void clcg_attach_spinny2cell(CGFloat size, UITableViewCell *cell)
{
UIActivityIndicatorView *spinny;
- spinny = newSpinny(size);
+ spinny = clcg_new_spinny(size);
[cell setAccessoryView:spinny];
[spinny release];
}
Please sign in to comment.
Something went wrong with that request. Please try again.