Permalink
Browse files

changed function names to candygirl naming conventions

  • Loading branch information...
1 parent 4024ce9 commit cf97f3e2b645d77386d88ff0ac4c258c4733247c @ettore committed Oct 21, 2011
Showing with 17 additions and 17 deletions.
  1. +7 −7 clcg_gfx.h
  2. +10 −10 clcg_gfx.m
View
@@ -43,17 +43,17 @@ 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.
* @param vc The view conroller about to be pushed.
* @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,20 +68,20 @@ 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);
/**
* Creates an UIActivityIndicatorView of given size in pixels and returns it.
* 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
@@ -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];
}

0 comments on commit cf97f3e

Please sign in to comment.