mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:00:37 +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
|
@ -284,6 +284,15 @@ static BOOL _gnu_contextHelpActive = NO;
|
|||
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
|
||||
{
|
||||
NSMapInsert(contextHelpTopics, object, help);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue