mirror of
https://github.com/nickshanks/ResKnife.git
synced 2024-06-08 02:29:27 +00:00
Fixed icons, messed around in the engine a little.
This commit is contained in:
parent
52a51f7d79
commit
524c6532df
|
@ -3,7 +3,7 @@
|
|||
|
||||
@interface PasteboardDocument : ResourceDocument
|
||||
{
|
||||
unsigned long generalChangeCount; // change count for the general pasteboard
|
||||
int generalChangeCount; // change count for the general pasteboard
|
||||
}
|
||||
|
||||
- (void)readPasteboard:(NSString *)pbName;
|
||||
|
|
|
@ -42,6 +42,18 @@
|
|||
[resources addObject:resource]; // array retains resource
|
||||
}
|
||||
[[self undoManager] enableUndoRegistration];
|
||||
|
||||
[outlineView reloadData];
|
||||
}
|
||||
|
||||
-(void) windowDidBecomeKey: (NSNotification*)notification
|
||||
{
|
||||
// This mess sponsored by Uli Kusterer ;-)
|
||||
generalChangeCount = [[NSPasteboard generalPasteboard] changeCount];
|
||||
[resources removeAllObjects];
|
||||
|
||||
[self readPasteboard:NSGeneralPboard]; // Update window contents.
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
|
|
@ -13,7 +13,9 @@
|
|||
{
|
||||
static PasteboardWindowController *sharedPasteboardWindowController = nil;
|
||||
if( !sharedPasteboardWindowController )
|
||||
{
|
||||
sharedPasteboardWindowController = [[PasteboardWindowController allocWithZone:[self zone]] init];
|
||||
}
|
||||
return sharedPasteboardWindowController;
|
||||
}
|
||||
|
||||
|
|
Binary file not shown.
3
TODO.txt
3
TODO.txt
|
@ -1,2 +1,3 @@
|
|||
-> "Open as Hex" displays "(null)" as the document name. Why?
|
||||
-> Template editor always forces at least one item in a list. Make it support empty lists.
|
||||
-> Changing the type/creator of a file isn't written to disk by ResourceDocument.
|
||||
-> Create small versions of the doc icons in Photoshop instead of letting IconComposer use its cheap scaling on them.
|
Loading…
Reference in New Issue
Block a user