heikomaass / HMLauncherView

[ABANDONED] UI component for buttons like Apple's SpringBoard
Other
191 stars 25 forks source link

A question about code structure #11

Closed gerchicov-bp closed 9 years ago

gerchicov-bp commented 9 years ago

Could you explain why do you use the following variables at once: @property (nonatomic, assign) BOOL canBeDeleted; @property (nonatomic, assign) BOOL hideDeleteImage;

it seems hideDeleteImage is extra

heikomaass commented 9 years ago

They are not the same:

canBeDeleted: If set to true, the item can be deleted from the LauncherView. hideDeleteImage: A flag which indicates that the delete image should be hidden. When the LauncherView is in the editing mode, the delete image should be displayed and this flag is set to false.

The hideDeleteImage is part of the public interface of HMLauncherIcon because the HMLauncherView sets the state in its updateDeleteButtons method.