Revision: 4093
http://skim-app.svn.sourceforge.net/skim-app/?rev=4093&view=rev
Author: hofman
Date: 2008-06-28 13:03:11 -0700 (Sat, 28 Jun 2008)
Log Message:
-----------
Create array of note texts lazily, as the initializer does not create it
anymore.
Modified Paths:
--------------
trunk/SKNPDFAnnotationNote_SKExtensions.m
Modified: trunk/SKNPDFAnnotationNote_SKExtensions.m
===================================================================
--- trunk/SKNPDFAnnotationNote_SKExtensions.m 2008-06-28 14:02:24 UTC (rev
4092)
+++ trunk/SKNPDFAnnotationNote_SKExtensions.m 2008-06-28 20:03:11 UTC (rev
4093)
@@ -57,7 +57,6 @@
if (self = [super initSkimNoteWithBounds:bounds]) {
[self setColor:[[NSUserDefaults standardUserDefaults]
colorForKey:SKAnchoredNoteColorKey]];
[self setIconType:[[NSUserDefaults standardUserDefaults]
integerForKey:SKAnchoredNoteIconTypeKey]];
- texts = [[NSArray alloc] initWithObjects:[[[SKNoteText alloc]
initWithAnnotation:self] autorelease], nil];
textStorage = [[NSTextStorage allocWithZone:[self zone]] init];
[textStorage setDelegate:self];
text = [[NSAttributedString alloc] init];
@@ -122,6 +121,12 @@
return [[NSScriptCoercionHandler sharedCoercionHandler]
coerceValue:value toClass:[NSTextStorage class]];
}
+- (NSArray *)texts {
+ if (texts == nil)
+ texts = [[NSArray alloc] initWithObjects:[[[SKNoteText alloc]
initWithAnnotation:self] autorelease], nil];
+ return texts;
+}
+
#pragma mark Accessibility
- (NSArray *)accessibilityAttributeNames {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit