mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 19:00:47 +00:00
* Headers/AppKit/NSHelpManager.h:
* Source/NSHelpManager.m: added -setContextHelp:forObject: as specified in Apple docs; -setContextHelp:withObject: deprecated. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@23174 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1f7a6aa9ab
commit
ac8edc1e3a
3 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2006-07-17 Enrico Sersale <enrico@fibernet.ro>
|
||||||
|
|
||||||
|
* Headers/AppKit/NSHelpManager.h:
|
||||||
|
* Source/NSHelpManager.m:
|
||||||
|
added -setContextHelp:forObject: as specified in Apple docs;
|
||||||
|
-setContextHelp:withObject: deprecated.
|
||||||
|
|
||||||
2006-07-16 Enrico Sersale <enrico@fibernet.ro>
|
2006-07-16 Enrico Sersale <enrico@fibernet.ro>
|
||||||
|
|
||||||
* Headers/Additions/GNUstepGUI/GSHelpManagerPanel.h: added -buttonAction:
|
* Headers/Additions/GNUstepGUI/GSHelpManagerPanel.h: added -buttonAction:
|
||||||
|
|
|
@ -68,6 +68,8 @@
|
||||||
|
|
||||||
- (void) removeContextHelpForObject: (id)object;
|
- (void) removeContextHelpForObject: (id)object;
|
||||||
|
|
||||||
|
- (void)setContextHelp:(NSAttributedString *)help forObject:(id)object;
|
||||||
|
|
||||||
- (void) setContextHelp: (NSAttributedString*) help withObject: (id) object;
|
- (void) setContextHelp: (NSAttributedString*) help withObject: (id) object;
|
||||||
|
|
||||||
- (BOOL) showContextHelpForObject: (id)object locationHint: (NSPoint) point;
|
- (BOOL) showContextHelpForObject: (id)object locationHint: (NSPoint) point;
|
||||||
|
|
|
@ -284,6 +284,15 @@ static BOOL _gnu_contextHelpActive = NO;
|
||||||
NSMapRemove(contextHelpTopics, object);
|
NSMapRemove(contextHelpTopics, object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)setContextHelp:(NSAttributedString *)help forObject:(id)object
|
||||||
|
{
|
||||||
|
NSMapInsert(contextHelpTopics, object, help);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deprecated ... do not use.
|
||||||
|
* Use -setContextHelp:forObject: instead.
|
||||||
|
*/
|
||||||
- (void) setContextHelp: (NSAttributedString*) help withObject: (id) object
|
- (void) setContextHelp: (NSAttributedString*) help withObject: (id) object
|
||||||
{
|
{
|
||||||
NSMapInsert(contextHelpTopics, object, help);
|
NSMapInsert(contextHelpTopics, object, help);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue