If you are trying to bind to an arrayController via representedObject, I've
never had any luck with that. I've always used representedObject to get a
local reference to the arrayController and bind to that.
On 2/8/17 8:26 PM, "cocoa-dev-requ...@lists.apple.com"
wrote:
> Note that I've also trie
Just don't try binding to an arrayController via representedObject. I've
resorted to using representedObject to establish a local iVar to reference
such an arrayController. That works.
On 1/12/17 1:42 PM, "cocoa-dev-requ...@lists.apple.com"
wrote:
>
On Jan 11, 2017, at 13:16 , Daryle Walker w
It¹s a bug. I filed it a couple of days ago. 22666722 AVCaptureSession
commitConfiguration calls deprecated code.
On 9/13/15 2:00 PM, "cocoa-dev-requ...@lists.apple.com"
wrote:
> Well, AVCaptureView is not very malleable. I needed to use an
> AVCaptureVideoPreviewLayer, which needed quite a fe
First, yes, AVFoundation is the way to go.
Second, you can use AVCaptureView or AVCaptureVideoPreviewLayer. II
recommend that you don¹t subclass AVCaptureVideoPreviewLayer, but rather
embed it in your own custom CALayer. That gives you more freedom of control,
and if you want to do things like cli
On 5 Jul 2015, at 6:53 am, Gordon Apple wrote:
>> >
>> > However, if user changes the
>> > displayed value, leaving the degree symbol intact, it says it is invalid >>
and
>> > throws an exception, essentially ending the program run. This is totally
>>
I¹m having a new problem, in code that¹s been around for awhile, that I¹d
swear was never there before. Text field had a NSNumberFormatter and is
bound to a CGFloat. It is for angle entry and the format is set to show the
degree symbol suffix. A Circular slider is bound to the same value. Text
disp
Ok, I admit to being confused. Seems like what we are missing is the data
model. Your containers must be or at least have an array for storage.
Normally, the NSTreeController reflects this model and has the info provided
to traverse it. In my case, elements are CoreData objects with parent
relation
If you are going to use a data hierarchy, then use a data hierarchy. Look
like you are attempting to use a linear array, which won¹t work. You need
arrays of arrays and you bind the tree controller to the root array.
On 6/10/15 10:45 PM, "cocoa-dev-requ...@lists.apple.com"
wrote:
> Hi All, Is t
Apparently so. I have had difficulty dragging things into an open
(non-transient) popover. It just doesn¹t work.
On 5/7/15 1:00 PM, "cocoa-dev-requ...@lists.apple.com"
wrote:
> I am trying to drag a NSTableView row on to a NSView on the same window. But
> the window is a non-key window (made exp
You can stack views and controls however you like. I do it all the time. You
need to pay attention to the list of views, not just the visuals in iB. Just
use an outlet or binding to hide the ones you don¹t want showing. Set the
activity indicator to hide when not active. When you stop animation, un
I totally disagree with that assessment. Selection should NOT be a property
of the object model. I tried that years ago. Bad move. Selection is part of
the ³control² layer of MVC. The view² part displays to the user. The array
of objects is part of the model. You should be iterating the array for
We have a Mac application that uses CALayers (subclassed) for layered
drawing. Our drawing view uses a drawing delegate for drawing (rendering)
and a Edit delegate for interaction. The latter is in a view controller that
is also inserted into the view¹s responder chain. (Edit Delegate methods are
m
Thanks, I¹ll look into that.
It would have been nice if the docs has more explanation of how they are
handling the responder chain for viewControllers. Also, it appears that the
view is now holding a reference to the viewController (when used). However,
it is not public. I wish that would make tha
In Yosemite, any included viewController is automatically inserted into the
view¹s responder chain. Something is not working right. In many of our
views, we insert controllers (derived from NSResponder) A and B into the
view¹s responder chain. A must come first, then B, so B is inserted first as
th
I hope they haven¹t gone to layer backed views for text. If you have a
choice turn that off. We have a teleprompter app which scales formatted text
nicely on Mac, but was found to be unusable on iOS due to layer backing.
On 11/17/14 3:00 PM, "cocoa-dev-requ...@lists.apple.com"
wrote:
> Hi, I ha
Reminds me when I racked my brain trying to figure out how OmniGraffle drew
parallel border lines on Beziers. I tried inset/outset, etc, then slapped my
forehead when I realized that they just stroked it with a wide line, then
again with a narrow line using the background color. Duh!
On 10/20/14
What has happened to the WWDC app? I even deleted it from my iPad and
re-downloaded it. It doesn¹t work. Crashes and quits when you select
anything.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator c
I tried using NSExpansionAttributeName when sending a NSAttributedString to
CoreText, but it didn’t work. Docs say it should be a NSNumber of the log of
the expansion factor. This is confusing because log normally means base 10,
except that in C it is actually ln() (Naperian). Either way, it had no
One of my big gripes with the Mac or iOS text system is the lack of a real
super/subscript attribute. I haven¹t tried doing custom attributes. Is it
possible to define and use custom super/subscript attributes which combine
the normal baseline shift attributes with NSExpansionAttributeName to get a
e item
> prototypes for NSCollectionView. I.e. the ones that are added automatically
> when dragging an NSCollectionView in IB.
>
>
> On Wed, Jun 18, 2014 at 7:09 PM, Gordon Apple wrote:
>> I¹m not clear as to what your view/nib structure is. If you are using a view
>>
Sorry, forgot to update the Subject on previous post
On 6/18/14 8:28 AM, "cocoa-dev-requ...@lists.apple.com"
wrote:
> Bindings setup with NSCollectionViews
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or
I¹m not clear as to what your view/nib structure is. If you are using a view
nib, I recommend using a custom viewController and, in awakeFromNib, setting
a local property (maybe from an IBOutlet) to the array controller. Trying to
bind anything to an array controller through a view controller¹s
rep
Can¹t seem to get this to work. I have a collection view in a popover
(dismissed with a ³close² button) launched from a sheet. Delegate is set to
controller which declares NSCollectionViewDelegate, implements the validate
and accept drop protocols. Collection view (not the enclosing scroll view)
is
Kyle, if you read my first post, I want the user to be able to show the
toolbar if corrections or changes are needed in real-time. This only applies
to one window, and only when capturing from the content area of that window.
I would prefer that the captured video did not show toolbar animation and
> On May 24, 2014, at 10:02 AM, Gordon Apple wrote:
>
>> > Two separate issues:
>> >
>> > 1. CALayer Animation. I have a movie sublayer which has an observer to
>> > track an underlying draw object¹s bounds. When dragging the object, the
>> &
Two separate issues:
1. CALayer Animation. I have a movie sublayer which has an observer to
track an underlying draw object¹s bounds. When dragging the object, the
movie layer position lags. I¹ve tried ³removeAnimationForKey:@²position²,
and ³removeAllAnimations² when creating the layer. I¹ve al
; HTML, but does offer the ability to handle custom HTML for things like tables,
> that don’t translate easily as styled text. I would agree that it can be a
> complex application if you want to get beyond the basics.
>
> On May 7, 2014, at 10:08 AM, Gordon Apple wrote:
>
>>
Wow! That¹s quite an indictment of one of Apple, Inc¹s supposed developer
tools. You¹d think that with $190B cash, they could fix this. One of the
problems I ran into is that I couldn¹t find the indexing tool without going
back to old versions. When I tried to use it, it choked, spewing a litany
o
We would like to get a recommendation on the best way to generate a help
system for a fairly complex application. We started by using a simple web
view and created about 120 screens in BBEdit, mostly drill-down outlines.
Unfortunately, this has been proven to be difficult to maintain. We¹ve
looked
Ah. Somehow, I totally missed the fact that NSText has its own delegate
protocol. That did it. Thanks.
On 4/15/14 7:20 PM, "Graham Cox" wrote:
>
> On 16 Apr 2014, at 9:57 am, Gordon Apple wrote:
>
>> > Is there any way to get a notification or set an observer on
Is there any way to get a notification or set an observer on NSTextView¹s
used text length? After much research, I have not found a way other than to
pole the layout manager for usedRectForTextContainer. This must exist
internally because the textView has to communicate with the containing
scrollVi
One thing you are missing, is that, as far as I know, the generated
accessors are still broken. You have to write your own. I did find a set
of macros someone wrote for this, but haven¹t tried them yet because I had
already written many of my own sets of accessors.
Two more things to watch out f
recipe about how to generate an image and not a bitmap
> representation of the image which I think is where your problem lies.
>
> Kevin
>
> Sent from my iPhone
>
> On 24 Feb 2014, at 17:28, Gordon Apple wrote:
>
>> > Apparently, my comment about not understan
does not work. Any reason, besides what I postulated, why
this shouldn¹t work?
On 2/23/14 3:06 PM, "Gordon Apple" wrote:
> We have run into a number is issues trying to use CIFilters with CALayers:
>
> 1. When a layer is hidden, its filters, especially background filters, shou
We have run into a number is issues trying to use CIFilters with CALayers:
1. When a layer is hidden, its filters, especially background filters,
should be temporarily removed, or at least bypassed. Hiding the layer
should make if effectively non-existent in the displayed layer stack.
2. The doc
We are applying a custom background filter to a CALayer. It works once,
at installation. However we have been unable to do live control of the
filter parameter. Yes, we are using valueForKey to change parameters, and
have verified that the filter parameters are getting updated. However,
outpu
I need to upload a video file to YouTube from my Mac App. So, naturally, I
looked at NSSharingService. It supports 19 different kinds of uploads --
none to YouTube. Whasup? Apple, Inc. just have a vendetta against Google
and YouTube? I have YouTube upload in my iOS app, so I suppose I could port
If you can spare the real estate, I would suggest adding your own
subview-bar and put the popover buttons there. That¹s what I did. Or just
overlay the buttons on your main view.
> I have an iPad app with a UIToolbar across the top, and a couple of
> UIPopoverControllers that come out of buttons
If all you are trying to do is display row numbers, the only reasonable way
I know is to use the table¹s delegates, then find and insert the row number
for your table¹s number column. Doing it the way you stated would preclude
display elsewhere if you needed that later. IMHO, it¹s preferable to us
, which kills the shadow. If I remember correctly, I did not have this
problem with QTCapturePreviewLayer using the same code. But at least now, I
have something to look into. Thanks.
On 1/3/14 4:29 PM, "Gordon Apple" wrote:
> The default of masksToBounds in CALayer is NO. I had m
The default of masksToBounds in CALayer is NO. I had my subclass of
AVPlayerLayer log it, and it does show it is still NO.
On 1/3/14 3:18 PM, "David Duncan" wrote:
> On Jan 3, 2014, at 11:09 AM, Gordon Apple wrote:
>
>> David,
>>
>> Now, if someone could ju
> David,
>
> Now, if someone could just tell me why AVPlayerLayer won¹t produce a shadow,
> when there is no such problem with QTMovieLayer in the same environment...
>
>
> ===
> Message: 1 Date: Wed, 01 Jan 2014 17:44:01 -0800 From: David Duncan
>
That¹s also a problem with re-declared methods not labeled as IBAction, such
as a few contained in NSTextView. (e.g., superscript, subscript.)
Another point with firstObject. I assumed this was the same as array[0] or
objectAtIndex:0, but apparently not so. If I remember correctly, these
result
The total of all images ever seen by humans on the planet is less that
2^^60. So, theoretically, in an information-theory sense, every image ever
seen by humans could be specified by a unique 64-bit word.
___
Cocoa-dev mailing list (Cocoa-dev@lists.app
luder" wrote:
>> > On Nov 22, 2013, at 7:56 AM, Gordon Apple wrote:
>
>> >
>> > I¹m a little confused as to whether or not one can use a CIKernel in a
>> > samdboxed app. Custom filters often require this and WWDC is full of
>> > example
I¹m a little confused as to whether or not one can use a CIKernel in a
samdboxed app. Custom filters often require this and WWDC is full of
examples using such. Sandbox guides say no kernel extensions. Is CIKernel a
special case? What¹s the story on this?
Having a few issues here with the new screens/spaces feature. I use second
monitor as presentation screen and do video capture from there. All the
Mission Control prefs are checked, except for dashboard as a space. I use
two spaces on main screen.
First, the terminology is confusing. Mission C
With 10.9, targeted at 10.8, when I show a toolbar for a window, I get the
console message: ³Misuse of NSImage and CALayer. contentsGravity is top. It
should be one of resize, resizeAspect, or resizeAspectFill. Stack trace is
useless.
What the heck is this? I only have NSToolbarItems and a coupl
Are DataDetectors broken in iOS7? I have seen other posts with the same
issues I am seeing. I have a Twitter Timeline with a UITextView and link
detector in a TableViewCell. Works, maybe once, then highlights the entire
text and doesn¹t link right. Worked in iOS6.
_
I really don¹t like to do posts like this, but I think it is warranted. My
motivation is to find out how others are coping with this. Admittedly, I¹m
late to the party, only upgrading after the release. There were only a few
features I thought I might add in my iPad apps for iOS7, so I just let
UIKeyCommand is a welcomed addition to iOS when using an external keyboard.
However, there seems to be a few deficiencies in its functionality:
1. F-keys. Is there any way to snag an F-key command with UIKeyCommand?
You have to specify a string. Is there a way to do this?
2. Repeat keys. Some
Ok, Apple, inc. guys. I¹m not having a lot of success with the MathType
people on doing this on a Mac. What I have is the ability to paste/drop
MathType pdfs into objects and text, the latter proportioning the baseline
properly (even when resizing it), plus my text code now works properly will
all
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@
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
>> >
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
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.
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
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,
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.
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
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
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
:
>
> 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
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
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
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
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
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
.
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
>>
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
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
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
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:
&
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
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'
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
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
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
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
.
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
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:
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
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.
>
>>
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
, "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
- (void)awakeFromNib {
[self.doc addObserver:self
forKeyPath:@"currentPath"
options:NSKeyValueObservingOptionNew |
NSKeyValueObservingOptionOld
context:nil];
}
- (void)observeValueForKeyPath:(NSString *)keyPath
ofObject:(
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
_
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
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
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
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
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
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
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 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
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
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
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
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
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
1 - 100 of 312 matches
Mail list logo