Fixed typos and error message

This commit is contained in:
Aparajita Fishman
2011-11-03 22:30:54 -07:00
parent 7e6ed01dd2
commit 7a57bd73c3
+6 -6
View File
@@ -103,7 +103,7 @@ var CPPopoverDelegate_popover_willShow_ = 1 << 0,
@return CPRect represeting the frame of the popover
*/
- (CPRect)positionningRect
- (CPRect)positioningRect
{
if (!_attachedWindow || ![_attachedWindow isVisible])
return nil;
@@ -113,7 +113,7 @@ var CPPopoverDelegate_popover_willShow_ = 1 << 0,
/*! Sets the frame of the popover
@param aRect the desired frame
*/
- (void)setPositionningRect:(CPRect)aRect
- (void)setPositioningRect:(CPRect)aRect
{
if (!_attachedWindow || ![_attachedWindow isVisible])
return;
@@ -196,14 +196,14 @@ var CPPopoverDelegate_popover_willShow_ = 1 << 0,
}
#pragma mark -
#pragma mark Positionning
#pragma mark Positioning
/*!
Show the popover
@param positioningRect if set, the popover will be positionned to a random rect relative to the window
@param positioningView if set, the popover will be positioned relative to this view
@param preferredEdge: CPRectEdge representing the prefered positionning.
@param preferredEdge: CPRectEdge representing the preferred positioning.
*/
- (void)showRelativeToRect:(CPRect)positioningRect ofView:(CPView)positioningView preferredEdge:(CPRectEdge)preferredEdge
{
@@ -230,7 +230,7 @@ var CPPopoverDelegate_popover_willShow_ = 1 << 0,
else if (positioningView)
[_attachedWindow positionRelativeToView:positioningView preferredEdge:preferredEdge];
else
[CPException raise:CPInvalidArgumentException reason:@"you must set positioningRect or positioningRect"];
[CPException raise:CPInvalidArgumentException reason:@"a value must be passed for positioningRect or positioningView"];
if (_implementedDelegateMethods & CPPopoverDelegate_popover_didShow_)
[_delegate popoverDidShow:self];
@@ -301,4 +301,4 @@ var CPPopoverDelegate_popover_willShow_ = 1 << 0,
[aCoder encodeObject:_animates forKey:@"_animates"];
}
@end
@end