with a fixed frame but scrollable bounds, so that it only creates tiles
(or a single CALayer) needed to display within its frame?
On 8/7/10 12:57 PM, "David Duncan" wrote:
> On Aug 6, 2010, at 6:07 PM, Gordon Apple wrote:
>
>> I thought that was what the scroller was supp
I want iTunes inport/export file sharing. However, I have a number of
internal document files and folders which I do not want shared or visible in
iTunes, because they can be accessed and (accidentally) deleted by the user.
I've tried hiding the files and folders, to no avail -- they still show up
vid Duncan" wrote:
> On Aug 7, 2010, at 12:26 PM, Gordon Apple wrote:
>
>> I want iTunes inport/export file sharing. However, I have a number of
>> internal document files and folders which I do not want shared or visible in
>> iTunes, because they can be acce
I've Googled this and have seen that others have had this problem, but no
good solutions. When using a UINavigationController in a popover, where the
content can be different sizes, the nav controller seems to always wants to
make the popover full screen height, ignoring popover size settings. Th
he
problem.
On 12/17/10 10:49 AM, "Matt Neuburg" wrote:
> On Thu, 16 Dec 2010 14:37:00 -0600, Gordon Apple said:
>> I've Googled this and have seen that others have had this problem, but no
>> good solutions. When using a UINavigationController in a popover, where th
Welcome to the lame world of UITextView. No styles, no attributes.
Obviously, Apple, Inc. has something better, as shown in Pages, but they are
not sharing it with the rest of us. Other than rolling your own with
CoreText (which I have partly done -- and it's not easy), the only
alternative I kno
hanks,
>>
>> --
>> Luc Van Bogaert
>> luc.van.boga...@me.com
>>
>> ___
>>
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>>
>> Please do not post admin requ
(10.7) I have a small (but resizable) initial window that is the only one I
want open on the main screen when the document is launched. The app has
numerous other document windows, one of which is normally full-screen on a
second monitor. If I quit (usually through xcode while debugging) and
re-
On 5/30/12 1:27 PM, "Conrad Shultz" wrote:
> On 5/30/12 10:52 AM, Gordon Apple wrote:
>> > (10.7) I have a small (but resizable) initial window that is the only one
I
>> > want open on the main screen when the document is launched. The app has
>> >
Is there a way to block NSSavePanel from alerting a file overwrite? I¹m
using it simply to establish a URL and later alert about overwrite when a
record command is issued. I would prefer to not have the user see this
twice.
___
Cocoa-dev mailing list
> Use an NSOpenPanel instead?
>
> On 6 Jun 2012, at 18:04, Gordon Apple wrote:
>
>> > Is there a way to block NSSavePanel from alerting a file overwrite? I¹m
>> > using it simply to establish a URL and later alert about overwrite when a
>> > record command is issu
I'm trying to convert code to use the new pasteboard methods, and having a
few issues. For private types, I need to use NSPasteboardItem because the
read/write protocols don't work for managed objects. (readObjects
automatically uses NSKeyedUnarchiver and I use a subclass to provide the
moc.) Th
Invariably happens. I hesitate and agonize over whether to hit the ³send²
button, then promptly discover the solution. Apparently, I need to be using
³canReadItemWithDataConformingTpTypes² instead. However, it is still a
mystery to me as to why the other failed.
On 6/20/12 12:28 PM, "G
I have an application which I am trying to update to use the new pasteboard
protocols, NSDragSession, etc. The new version requires Lion. Drag/drop
has been an absolute nightmare. The main windows have to handle a large
number of drop types, plus there is a separate library with its own coredata
I¹m running into two issues with moving items in NSMutableOrderedSet:
1. To get around the non-functional autogenerated accessors for ordered sets
in CoreData, I use mutableOrderedSetValueForKey and call
moveObjectsAtIndexes:toIndex:. Apparently this first removes the values,
then inserts them at
- (void)setGraphicProperties:(SKTMapTableOwner *)propertiesPerGraphic {
NSMapEnumerator propertiesPerGraphicEnumerator =
NSEnumerateMapTable([propertiesPerGraphic mapTable]);
Shape *graphic;
NSDictionary *graphicProperties;
while (NSNextMapEnumeratorPair(&propertiesPerGraphicEn
Well, I didn¹t get any response as to how to make that beast ARC compliant,
so I did something else. Keeping the same basic undo architecture as used
in Sketch, I created my own version of NSMutableDictionary, albeit much
simplified, containing only what I needed. Sometimes the standard classes
d
I have an NSButton in a control panel with an action bound via an
arrayController. I can send an action no problem. The question is how to
get the ³sender² (i.e., the button) parameter included. I can¹t figure out
how to do this with the argument binding (in IB). I need the sender for
launchin
Anybody remember Steve Jobs having a fit about ³square pixels² somewhere
back in the Lisa or early Mac days? The scale should not change on a
rotation, unless you are somehow setting the bounds rect in your drawing
view instead of the frame rect when rotated. That could do it.
On 9/21/12 7:50 P
I have a screen overlay window/view (one for each available screen) which
accepts mouse events (up, down, dragged). I want the user to be able to
cancel and dismiss the overlay window(s) by hitting the ³any² key (old MS
joke). Unfortunately, overriding keyDown/keyUp does not work. I just get a
s
;
> On Oct 4, 2012, at 3:17 PM, Gordon Apple wrote:
>
>> This is essentially the DragMouseBoxView (simple subclass of NSView) from
>> the AVScreenShack sample. It is set to acceptFirstResponder and
>> acceptFirstMouseClick.
>
> You may need to override -canBecome
I added a category to NSScreen containing the following:
- (CGDirectDisplayID) screenID {
NSDictionary *dict = self.deviceDescription;
CGDirectDisplayID theID = [dict[@"NSScreenNumber"] unsignedIntValue];
return theID;
}
+ (NSScreen*) menuScreen {
return [[self screens] objectAtIn
I¹m mostly using it for setting/retrieving/showing a capture region on the
screen. If the user manually draws a capture region, I have to determine
the relevant screen ID in order to know if the AVScreenCaptureInput object
needs to be replaced with a new one. (You can only set it¹s capture screen
not part of that
> document type's configuration. But that wasn't the case. All document types
> had to be migrated if an entity in any configuration in the model changed. So
> what are configurations useful for?
>
> Dave
>
> On 2012-11-03, at 3:16 PM, Gordon Apple
I don¹t know about iCloud, but I finally got file wrappers working for my
NSPersistentDocument subclass. It wasn¹t easy. I use a separate folder for
stored files, sibling to my coreData storage, in the same package. I based
it losely on the NSPersistentDocumentFileWrappers sample, then let my ³F
What¹s the story on removeObserver:self forKeyPath:nil, called in dealloc?
Supposedly, this works. The docs don¹t say you can¹t use nil. However, I
have run into at least one place where did not work. We converted from GC
to ARC and have a bunch of these. I have seen statements that it worked
u
I know this doesn¹t work in iOS. Can an NSPopover have a popover? (Nothing
mentioned either way in the docs.) I have a slider control in a popover for
movie shuttle. Ideally, I would like to add a small popover showing the
movie frame and have it track the control. If not, I suppose I could mak
Well, if you are lobbying for features, IMHO, they should also at least
include simple migration.
On 11/29/12 7:16 PM, "Sean McBride" wrote:
> On Fri, 30 Nov 2012 00:43:36 +, Mike Abdullah said:
>
>> >With all the different features of the document system these days, it
>> >can be pretty h
Seemingly simple problem. View in a panel window has a push-on/push-off
button. View has link to button (so I don¹t have to find it by tag). View
observes button state. Observer sets a color property according to button
state and calls [self setNeedsDisplay:YES]. Draw method fills view with
co
Well, its bindings certainly work, and the observers works when its state is
changed by the distant (also bound) button.
On 12/1/12 10:29 AM, "Kyle Sluder" wrote:
> Sounds like NSButton is not KVO-compliant for `state`.
>
> --Kyle Sluder
>
___
Coc
/12 2:01 PM, "Ken Thomases" wrote:
> On Dec 1, 2012, at 12:48 PM, Gordon Apple wrote:
>
>> > On 12/1/12 10:29 AM, "Kyle Sluder" wrote:
>> >
>>> >> Sounds like NSButton is not KVO-compliant for `state`.
>> >
>> > We
just so I could bind the button view argument to position the
popover. (The docks lie. You don¹t automatically get the sender using a
bound action. It comes through as nil.)
On 12/1/12 3:14 PM, "Kyle Sluder" wrote:
> On Dec 1, 2012, at 1:09 PM, Gordon Apple wrote:
>
>>
I have a simple subview in my NSCollectionView prototype. (Collection view
is in a popover. Popover launched from a floating control panel.) It
contains the following:
- (void) awakeFromNib {
CALayer *originalLayer = self.layer;
CALayer *newLayer = [CALayer layer];
newLayer.backgroun
I tried setting only that in IB. I also tried setting everything in that
view nib. OriginalLayer is non-nil in the trace, but, as you see, gets
replaced with the one with color background.
On 12/2/12 5:48 PM, "Kyle Sluder" wrote:
> On Sun, Dec 2, 2012, at 03:07 PM, Gordon Apple
Sorry for the delay. I¹ve been inaccessible for reasons I won¹t get into.
I have tried it without setting any layers in IB. I think you may be
correct about the copies. Another thing I don¹t know is if each cell simply
uses the prototype to draw in the correct location, or it it does actually
ma
ach with controls for the movies in the main screen. Now,
you can see what you are controlling in the popover.
On 12/4/12 11:17 AM, "Gordon Apple" wrote:
> This collection is a bank of AVPlayer controls for all movies which currently
> appear in the presentation window, on a di
I would recommend subclassing CALayer and using a notification to update its
position. Without more detail, I can¹t tell you exactly how to do this. I
use movie layers which do track underlying draw objects when I drag them.
On 12/17/12 6:14 AM, "cocoa-dev-requ...@lists.apple.com"
wrote:
> I
We have a collection view, with its own nib and viewController, in a
popover. Individual cells are modified clones of the prototype. The
collection displays a list of controllers that depend on the main screen
content. Opening the popover correctly shows all the relevant elements and
controls wo
I¹m having a few issues with NSPopover. ³animates² is the default, but is
explicitly set anyway. I have a tear-off window that instantly comes up
where it wants when the popover is clicked. It does not morph. Also, it
leaves the popover up, although I now explicitly close if when the window
lau
Bug 12930212 filed. Popover not resizing is shown in simple modification of
Popover sample code project. Haven¹t found answer on failure to morph.
Works in sample code. Our content view is considerably more complex.
Something is defeating it.
On 12/23/12 5:06 PM, "Gordon Apple" wro
te:
> On Sun, Dec 23, 2012, at 03:06 PM, Gordon Apple wrote:
>> > Another issue is that the popover will not resize when its content view
>> > size
>> > changes. It does come up initially in the right size. I even tried
>> > subclassing NSPopover, put
Sorry, my mistake. I use a different computer for eMail and was not even in
the same room when I sent it. I sent the code over via dropBox.
Well, I¹m adjusting the size of the view specified in my popover¹s
contentViewController, then setting the popover¹s contentSize. How else
would I do it?
When compiled under ARC, NSTimer should have a weak, not strong, reference
to its target. When the timer starts to fire, check the reference for nil
and invalidate itself. Come on guys, how hard is that? You wouldn¹t even
have to keep a reference to it, unless you want to invalidate it before th
NSWindowControllers which have no link to the controller containing the
timer.
On 1/12/13 1:05 PM, "Kyle Sluder" wrote:
> On Jan 12, 2013, at 10:49 AM, Gordon Apple wrote:
>
>> > When compiled under ARC, NSTimer should have a weak, not strong, reference
>> > to its
³shutDown² calls so I can finalize and release contained controllers in a
prescribed order. I might even add a protocol with those two methods.
On 1/12/13 2:33 PM, "Kyle Sluder" wrote:
> On Jan 12, 2013, at 12:16 PM, Gordon Apple wrote:
>
>> Re: Could somebody please fix
Uh, that¹s where I¹m calling the wakeup methods for the other controllers in
the nib. Then, I was suggesting calling ³shutDown² in windowWillClose. I
guess I wasn¹t very specific. My window nibs generally have a variety of
other controllers. I try my best to partition and encapsulate
functional
In case anybody is interested, the following wrapper for NSTimer solves the
problem. (You can add the other methods yourself, if needed.)
#import
@interface RTPTimer : NSObject
@property(nonatomic, weak) id target;
@property(nonatomic) SEL sel;
+ (RTPTimer *)scheduledTimerWithTimeInterval:(NS
Don¹t use NSMatrix. Use NSCollectionView. I have a popover containing a
collection view with sliders and all kinds of other stuff. Depending on
what you are doing, you may need to make the thing create a new view for
every collection class element instead of just replicating the prototype.
(I ha
See my response on ³Custom control with 4 vertical sliders². Like many
things, NSCollectionView is very simple to use, once you understand it. Your
xib file with handle most of it for you. You just have to supply the
prototype view and get your bindings hooked up properly and make sure you
know w
Ah! A Boilermaker. Did my MS and PhD there in EE may years ago, before I
went to Bell Labs.
I just suggested a collection view because they are so easy to use when you
need an array of identical views bound to an array of objects via the
represented object. You just create the prototype and let
In your nib, drag in a collection view. This will also get you a collection
view item and a prototype view, already connected together. Ser the number
of rows/columns for the collection view.
Bind your collection view to an array controller. Bind the latter to your
array of objects, each contai
We have a view-based tableView, each row containing a few controls and a
text field. Using a hover-view, mousing over a row launches a popover to
the side of the applicable row, containing information only (no
interaction). We subclassed NSPopover to set acceptsFirstResponder to NO to
prevent the
We are converting tables and outlines to view-based. So far, so good, on
tables. But NSOutlineView has been a pain. First of all, there is no
documentation on this, zero, zip, nada, zilch, in the NSOutlineView
Reference. You have to rely on sample code and NSOutlineView.h.
Our outline view has
We had assumed that outlineView:objectValueForTableColumn:item was not
called if the table was bound to a NSTreeController. Wrong assumption. If
we returned the correct value, or just eliminated this method, it mostly
works correctly. However, there a few anomalies. The outline text indents
prop
need
the basics working predictably first.
On 4/17/13 4:09 PM, "Quincey Morris"
wrote:
> On Apr 17, 2013, at 10:50 , Gordon Apple wrote:
>
>> We are converting tables and outlines to view-based. So far, so good, on
>> tables. But NSOutlineView has been a pain
Our view-based NSOutlineView still has a few annomalies, but mostly works.
Now, we are attempting to install a hoverView in our outline column to
launch a popover (display only) when mousing over a row. This works just
fine with NSTableViews, but so far does not work at all with NSOutlineView.
We
We have a hierarchy, displayed in an NSOutlineView. We also allow the user
to specify the root at any of the top two levels. When moving the root down
the tree, if there is no selection, the new root is the first element of the
top-level tree. If rows are selected, we use the first index path to
appropriate, subject to any applicable patents or
copyrights.²
On 5/2/13 4:55 PM, "Corbin Dunn" wrote:
>
> On Apr 21, 2013, at 11:51 AM, Gordon Apple wrote:
>
>> > Our view-based NSOutlineView still has a few annomalies, but mostly works.
>> > Now, we are att
Outline View on right has a text field followed by a button near the right
edge. Button strut is set on right. Initial layout is ok. Once any row is
expanded, buttons get pushed to the right by row indentation. The only way
to get it right is to expand width of containing window, then resize ba
How are you forcing the redraw? If you are using setNeedsDisplayInRect:,
are you expanding the rect enough to cover the shadow?
On 5/22/13 4:34 AM, "cocoa-dev-requ...@lists.apple.com"
wrote:
> What bit of obviousness am I missing here?
> http://www.sethwillits.com/temp/ShadowOffset.mov
_
- (void)awakeFromNib {
[self.doc addObserver:self
forKeyPath:@"currentPath"
options:NSKeyValueObservingOptionNew |
NSKeyValueObservingOptionOld
context:nil];
}
- (void)observeValueForKeyPath:(NSString *)keyPath
ofObject:(
, "Quincey Morris"
wrote:
> On Jun 14, 2013, at 13:06 , Gordon Apple wrote:
>
>> ³currentPath² property in doc gets set once. Observation gets dinged about
>> 200 times. Removing the ³reloadData² didn¹t affect this. Same observer in
>> another file gets dinged
awakeFromNib.
On 6/15/13 10:19 AM, "Kyle Sluder" wrote:
> On Jun 15, 2013, at 8:08 AM, Gordon Apple wrote:
>
>> > I shouldn¹t need to look at the context.
>
> You must ALWAYS check the context.
>
>> >
>> > OMG! I thought for sure I had chec
BTW, I’ve just reproduced the problem in TableViewPlayground.
On 6/15/13 10:19 AM, "Kyle Sluder" wrote:
> On Jun 15, 2013, at 8:08 AM, Gordon Apple wrote:
>
>> > I shouldn¹t need to look at the context.
>
> You must ALWAYS check the context.
>
>>
ot; wrote:
> On Jun 15, 2013, at 8:54 AM, Gordon Apple wrote:
>
>> Re: Multiple Observations Kyle,
>>
>> One of us is missing the point. Yes, awakeFromNib gets called for these
>> objects. The question is why does the viewController¹s awakeFromNib get
>> ca
interface object. Doing otherwise would not make any sense. I guess you are
saying that this statement applies for each mini-nib defining the cell view.
I still consider this to be a bug.
On 6/15/13 12:52 PM, "Kyle Sluder" wrote:
> On Sat, Jun 15, 2013, at 09:51 AM, Gordon Apple wrote:
.
On 6/15/13 1:27 PM, "Kyle Sluder" wrote:
> On Jun 15, 2013, at 11:20 AM, Gordon Apple wrote:
>
>> Re: Multiple Observations Well, I have to say that this statement is highly
>> ambiguous.
>
> It is not ambiguous. It is clear as night and day. -awakeFromNi
above, to forewarn users of this issue. Ideally, they
should fix the problem.
As such, I have filed this as a bug report, referring to this discussion:
14168920.
On 6/16/13 7:23 AM, wrote:
> On Jun 15, 2013, at 1:32 PM, Gordon Apple wrote: > I still think the compiler
> should be smart
Re: Confused by memory issue with UIDatePicker
I¹ve had a lot of experience with this and would like to share my basic
rules for IBOutlets when using ARC. This should be fairly obvious, but I
think it needs saying.
1. All top level objects in a nib should be strongly-referenced from the
file¹s
I try to minimize my dependency on CoreData by using generic and
app-specific categories on the MOC. I also mostly use root entities, rather
than doing independent fetches. I had looked at other options, but
pragmatism won out, and I went with CoreData.
You mentioned MacApp. I was heavily invol
I don¹t have the definitive answer to your question of how the AV volume
level is actually defined, but it would make sense for it to be linear in dB
(i.e, logarithmic in power). dB is always a power measurement. Growing up,
I was always told that a dB was the smallest volume change a person coul
Everything was down here for about two days. Now, these forums are
available and I can get reference access from Xcode, neither of which were
available, but the developer sites are still inaccessible.
On 7/21/13 9:29 AM, "cocoa-dev-requ...@lists.apple.com"
wrote:
> Indeed. You're right. I can'
Extensive Googling has not produced an answer. What is a MarkedText
attribute? Is setting a background with markedText the same as just setting
the (selected) text background? Or does markedText take precedence over (or
overlay) text background? Is this permanent or temporary, i.e., does the
mar
highlighting, and also allow all markings to
be easily cleared for the entire text view, if desired. Thus, my other
questions.
On 7/22/13 6:45 PM, "dangerwillrobinsondan...@gmail.com"
wrote:
>
>
> Sent from my iPhone
>
> On 2013/07/23, at 7:38, Gordon Apple wrote:
&
Ok, so that¹s out. I could create a custom attribute which would work as I
described, but I¹m not clear on what NSLayoutManager background method(s) I
would need to override to implement this.
On 7/22/13 7:30 PM, "Ken Thomases" wrote:
> I don't think you should attempt to use marked text for t
attributes to see if my custom
attribute background is applicable, or else call inherited.
On 7/23/13 10:05 AM, "Fritz Anderson" wrote:
> If I understand your need, -[NSLayoutManager
> drawBackgroundForGlyphRange:atPoint:]?
>
> ― F
>
> On 23 Jul 2013, at 9:55 AM, Gor
I have now added my own custom attribute, similar to markedText, and it
seems to work as intended. However, I have run into a new problem. I need
to know when selection if finished, but for some reason, my subclass of
NSTextView can not intercept mouseUp. The plan was at that point to change
my
.
On 7/24/13 3:46 PM, "Kyle Sluder" wrote:
> On Wed, Jul 24, 2013, at 12:47 PM, Gordon Apple wrote:
>> > I have now added my own custom attribute, similar to markedText, and it
>> > seems to work as intended. However, I have run into a new problem. I
>>
mouseUp never gets called. Never hits breakpoint on first line. That¹s what
I don¹t understand. This is a floating textView over a text draw object.
There is an overlay view in front, which is inert, except for rare
conditions. I checked to make sure it was not intercepting it. After all,
selec
gt; On Jul 24, 2013, at 14:53 , Gordon Apple wrote:
>
>> I need the mouseUp (selection ended)
>
> Why not use the delegate method for detecting a selection change
> (textViewDidChangeSelection) and, using state you save when a pen swipe
> starts, change the attributes on the new
selection
highlighting or if there is a standard background (or markedText) attribute.
I¹m not sure how to get it called for drawing using my custom attribute.
On 7/24/13 5:08 PM, "Quincey Morris"
wrote:
> On Jul 24, 2013, at 14:53 , Gordon Apple wrote:
>
>> I need the mo
I have a need to store an NSImage (possibly from a pasteboard) as standard
file type. As a last resort, I just archive the NSImage as a private type,
I have figured out how to recognize a NSPDFImageRep and store as a .pdf,
which I need because of certain metadata which needs to be preserved. But
That¹s a good point. The main thing is to use a format that is lossless and
easily converted.
Next question. Does anyone know how to get a PieceInfo Dictionary (if it
exists) out of a PDFDocument or PDFPage? Do I have to go outside of Cocoa
to get this?
On 8/2/13 12:28 PM, "Jens Alfke" wrote
:
>
> On 02/08/2013, at 6:23 PM, Gordon Apple wrote:
>
>> > As a last resort, I just archive the NSImage as a private type,
>
>
> Never do this! Not only is it inefficient, it isn't guaranteed to actually
> work - images that come from the picture taker for
program, and can be sent back to that program for
editing, then reinserted.
On 8/4/13 6:39 PM, "Uli Kusterer" wrote:
> On Aug 2, 2013, at 21:44, Gordon Apple wrote:
>> > Next question. Does anyone know how to get a PieceInfo Dictionary (if it
>> > exists) out of
tonio Nunes" wrote:
> On 5 Aug, 2013, at 01:02 , Gordon Apple wrote:
>
>> > I can¹t find any access to ³pieceInfo² via PDFKit.
>> >
>> > ³PieceInfo² is a standard pdf component, which many companies use for
>> > storage of private date. In t
I¹ve added resize capability for image attachments in my subclass of
NSTextView. Currently, this gets triggered by a double-click on the
attachment. I would prefer to do this with a single-click so I can reserve
double-click for launching an editor for some types of attachments. (I
suppose I cou
Using NSTextView¹s native ability to embed image attachments, we have
successfully implemented resizing of the image by using a resizable frame
with a drag handle, and using setSize on the NSImage. Works great. Only
one problem, re-archiving the NSAttributableString loses the image size
change.
Is there some reason why some classes, such as NSTextView, don¹t declare
IBAction in their actions? I¹ve taken to re-declaring such in subclasses,
which works, but results in compiler warnings about unimplemented methods.
Without that, you can¹t connect, say, a menu, in IB. You can use a binding,
Sorry for the delay. Got waylaid by my own issues. I guess that¹s the
case. Without re-declaring the header, it just doesn¹t show up in IB.
On 8/12/13 4:05 PM, "Kyle Sluder" wrote:
> On Mon, Aug 12, 2013, at 01:44 PM, Gordon Apple wrote:
>> > Is there some reason why
didn¹t help.
On 8/10/13 12:31 PM, "Gordon Apple" wrote:
> Using NSTextView¹s native ability to embed image attachments, we have
> successfully implemented resizing of the image by using a resizable frame with
> a drag handle, and using setSize on the NSImage. Works great.
I guess the operative word here is ³custom². So how does NSTextView handle
attachments which are not custom, because it does? Why not RTFD? I thought
RTF didn¹t handle attachments.
So, it looks like I need to archive the attributed string segment as a
custom pboard type, in addition to the norm
luder" wrote:
> On Thu, Aug 22, 2013, at 04:40 PM, Gordon Apple wrote:
>> > I guess the operative word here is ³custom². So how does NSTextView
>> > handle
>> > attachments which are not custom, because it does? Why not RTFD? I
>> > thought
>> >
The docs for NSPasteboardReading/Writing still claim that NSAttributedString
conforms. However, I can find no evidence of such in the refs, headers, or
additions for NSAttributedString . Is it is, or is it ain¹t.
___
Cocoa-dev mailing list (Cocoa-dev@
I'm currently trying to implement undo for drawing using code based on
Sketch and am running into KVO problems on "Shape" properties. Sketch uses
a dictionary of Properties that applies to selected Shapes (i.e.,
"Graphics"). Some of my parameters are compound, e.g., "Shadow" is a
referenced o
property that does not exist at registration time, and then have it observe
properly when the path is created. E.g., register to observe
xxx.shadow.angle when shadow does not exist, then add the shadow object and
have xxx.shadow.angle be observed properly.
> On May 19, 2008, at 2:02 PM, Gordon Ap
viable. That is good news. So I should be able to rule that out
and look elsewhere for problems I am encountering.
> On 21 May 2008, at 19:51, Gordon Apple wrote:
>
>>OK, thanks. That helps on the KVO responses. However, I have
>> other
>> questions about the entire KV
This used to work. No more. Has something changed in NSTextStorage?
In my Shape object, I have a dictionary of parameters, one being key =
"text" with value NSTextStorage*, similar to what is done in Sketch (without
the dictionary). My copyWithZone duplicated the dictionary and called
"
lthough I don't understand
why the problem just surfaced now.
>
> On 29 May '08, at 11:03 AM, Gordon Apple wrote:
>
>>Apparently, NSTextStorage does not conform to NSCopying, even
>> though its
>> superclass (NSAttributedString) does. Has something change
New attempt. Instead of intercepting the "text" key in my shape
CopyWithZone, I tried the obvious thing of subclassing NSTextStorage, adding
the copying/mutablecopying protocols using the same copy technique of
creating a new object initialized with the original. Even without the
protocols, t
101 - 200 of 312 matches
Mail list logo