Hi, All,
I have a project where a progress of NSTask is indicated through this
code:
if ([self popup] != nil)
anObj = [self popup];
else
anObj = self;
[[NSNotificationCenter defaultCenter] addObserver:anObj
On Mar 24, 2010, at 2:11 AM, Alexander Bokovikov wrote:
>[[NSNotificationCenter defaultCenter] addObserver:anObj
>
> selector:@selector(getData:)
>
So, I've got this app that connects to RTSP streams, and I'd rather
not nag the user every time it's launched with that "Do you wan the
application to accept incoming network connections?" dialog box.
Anyway to have the user authorize it once and have that authorization
stick, or is this
On Mar 24, 2010, at 2:50 AM, John C. Randolph wrote:
> So, I've got this app that connects to RTSP streams, and I'd rather not nag
> the user every time it's launched with that "Do you wan the application to
> accept incoming network connections?" dialog box. Anyway to have the user
> authori
On 24.03.2010, at 12:48, Ken Thomases wrote:
You need to invoke -readInBackgroundAndNotifyForModes: and pass an
array of modes which includes NSModalPanelRunLoopMode (or
NSRunLoopCommonModes, which includes NSModalPanelRunLoopMode by
default).
Many thanks! Really I should look at that me
Hello List,
while experimenting with sorting methods I got a strange error message with
-sortDescriptorWithKey:ascending:comparator:.
In the following listing (as simple as possible) an Array can be sorted with
-sortedArrayUsingDescriptors: with a selector, and
-sortedArrayUsingComparator:
But
> From: Tony Romano
> Date: March 24, 2010 1:57:04 AM PDT
> To: Cocoa Developers
> Subject: Re: NSTreeController, NSBrowser image setting
>
> Thanks Ken, that was somewhat helpful. However, I am still having trouble
> mapping the arguments passed via(- (void)browser:(NSBrowser *)browser
> wil
On Mar 23, 2010, at 10:10 AM, wrote:
> Just curious if there's any way to automate Adobe Photoshop CS4 with
> Cocoa/Objective-C? I'm new to this language. I know I can call
> NSAppleScript, but was just curious if there's another way to control the
> application?
Use the accessibility AP
Hi All
I have an NSTextView subclass, and when I make it first responder, it updates
the color in the color panel, which causes the color panel to send a
changeColor: message. Ditto when I change the selection.
In some cases, the color of my text is affected by things other than my
textview, b
> while experimenting with sorting methods I got a strange error message with
> -sortDescriptorWithKey:ascending:comparator:.
>
> In the following listing (as simple as possible) an Array can be sorted with
> -sortedArrayUsingDescriptors: with a selector, and
> -sortedArrayUsingComparator:
>
> B
Hello Ben,
thanks very much for your answer. Your idea with the nil keypath works!
So changing the line in question to:
NSSortDescriptor *descr3 = [ NSSortDescriptor sortDescriptorWithKey:nil
ascending:YES
comparator:^NSComparisonResult(id obj1, id obj2) {
is sorting the array without claim
Hi,
I need to open a bitmap file, perhaps do some filtering, and render it
to the screen with the maximum possible performance.
I am allowed to assume Snow Leopard.
Now I am a bit confused what technology (-ies) I should use to achieve
this in the fastest and easiest, and the most up-to-date way
On Tue, 23 Mar 2010 14:10:20 +, said:
>Just curious if there's any way to automate Adobe Photoshop CS4 with
Cocoa/Objective-C? I'm new to this language. I know I can call NSAppleScript,
but was just curious if there's another way to control the application?
You can use Apple events without
In presenting technical information I'd often like to display, in a text field,
a character which is either not available in the Unicode charts, or looks ugly
when rendered by Cocoa. For example, as a shorthand for indicating that 5
items were moved up or down, I'd like to display "↕5". That s
Have you tried using an attributed string to render that character at a
particular size or font? Rather than resort to an image attachment, it might
well allow you to force the arrow to show up as you want it.
On 24 Mar 2010, at 14:58, Jerry Krinock wrote:
> In presenting technical information
Actually, you can still give this a try.
The Leopard-style NSCollectionViewItem was restricted to replicating just the
prototype view so the array controller the prototype view was bound to would
not be replicated. Since SnowLeopard uses a nib for the prototype view, the
entire nib will be repl
I finally figured out how to solve the problem. The problem was when trying to
cancel and edit via the cancelOperation method that gets calls. The code as
calling the abortEditing method on the NSTextField to cancel the text editing,
and it also needed to call setEditable with a value of NO on
On 2010 Mar 24, at 08:15, Mike Abdullah wrote:
> Have you tried using an attributed string to render that character at a
> particular size or font? Rather than resort to an image attachment, it might
> well allow you to force the arrow to show up as you want it.
Thank you, Mike. Not with this
Dear list,
I guess this is an old chestnut, but a google search didn't reveal any good
clues as how one might go about doing code folding in an NSTextView subclass.
So, does anyone have any suggestions how one might implement such a feature?
This is for a LaTeX editor so I'm interested in fold
On Mar 17, 2010, at 3:20 PM, Kevin Brock wrote:
> On Mar 17, 2010, at 2:42 PM, Kyle Sluder wrote:
>> which is designed for just this kind of scenario. NSViewController
>> doesn't have an analog for -windowDidLoad; instead you are expected to
>> override -loadView, call super's implementation, and t
On Mar 24, 2010, at 9:46 AM, Martin Hewitson
wrote:
So, does anyone have any suggestions how one might implement such a
feature? This is for a LaTeX editor so I'm interested in folding
blocks of code between, for example, \begin{} \end{} tags,
collapsing \section, \subsection, etc.
The
On Mar 23, 2010, at 10:02 PM, Markus Spoettl wrote:
> My toolbar contains an item hosting a NSPopUpButton which has a menu. That
> menu contains regular items and a sub-menu which has its delegate assigned to
> the File's Owner because it's dynamic and needs to be rebuilt each time it is
> displ
At 5:46 PM +0100 3/24/10, Martin Hewitson wrote:
>I guess this is an old chestnut, but a google search didn't reveal any good
>clues as how one might go about doing code folding in an NSTextView subclass.
I would consider trying to use an NSOutlineView instead. You'd have to
identify lines whic
On Wed, Mar 24, 2010 at 10:18 AM, Jon Pugh wrote:
> I would consider trying to use an NSOutlineView instead. You'd have to
> identify lines which could be folded, in order to make them collapsible, but
> I think it has the basics of what you need.
NSOutlineView does not a good text editor make
Hi folks
Well, I have found a very simple way to avoid secondary MOCs or new objects
appearing in the table view, whilst adding new objects.
My example is to use a modal sheet to allow the editing of a new object.
In the NIB for the modal sheet, add a NSObjectController, set it to Class mode,
Hi Kyle,
I already have the model objects being backed by individual NSTextContainers
which then adopt the text view when they need to (using setTextView:). I was
just wondering if there are any recommendations how to conceptually handle code
folding, especially as I have line numbering. So, sh
On 24 Mar 2010, at 16:16, Jerry Krinock wrote:
>
> On 2010 Mar 24, at 08:15, Mike Abdullah wrote:
>
>> Have you tried using an attributed string to render that character at a
>> particular size or font? Rather than resort to an image attachment, it might
>> well allow you to force the arrow t
On Wed, Mar 24, 2010 at 7:58 AM, Jerry Krinock wrote:
> Now I know that I could create a black-and-white graphic which would look
> much better than that, but I'm a Dummy regarding fonts. I've read that
> Unicode has an area for "private use". Is it practical or even possible to
> install a f
On 2010 Mar 24, at 12:14, Mike Abdullah wrote:
> Even better, write an NSFormatter subclass which has
> -attributedStringForObjectValue:withDefaultAttributes: exactly for your sort
> of scenario. Use the default attributes to create an attributed string from
> your model string. Then, modify
On Wed, Mar 24, 2010 at 1:35 PM, Jerry Krinock wrote:
> Can a custom font be accessed from my application package, or do I need an
> installer (eeek!) to put it into Library/Fonts, as I have seen apps do?
You can put the font in your Resources folder and activate it
manually, avoiding the need f
Well, if you need a nil keypath you probably shouldn't be using sort
descriptors. The primary value of sort descriptors are (a) the KVC caching and
(b) an OO representation of a sort criteria.
The standard -sortedArrayUsingComparator: is for blocks like the one you wrote
that are completely
On Mar 24, 2010, at 13:35, Jerry Krinock wrote:
> Can a custom font be accessed from my application package, or do I need an
> installer (eeek!) to put it into Library/Fonts, as I have seen apps do?
>
> I presume that the task of creating the font is not related to Cocoa and will
> search else
I've determined that what I want to do is not possible with using a
NSTreeController and a NSBrowser. As I stated below, the willDisplayCell
doesn't have the correct parameters to determine the represented object.
Notice the cousin to NSBrowser, NSOutlineView, delegate willDisplayCell has the
On 24/03/2010, at 5:05 PM, Eli Bach wrote:
> I can only suggest with the utmost conviction that you actually fork the code
> base, [as in, have completely separate 'bug fix' and 'radical change'
> branches]. Either your radical changes will leak into your bug fix version,
> or you won't be ab
On Mar 24, 2010, at 4:35 PM, Graham Cox wrote:
> Thanks Eli (and Mike too, who voiced much the same opinion). I guess the term
> 'fork' in my title was a bit misleading. The change isn't that radical.
> Basically I want to add a major new feature but in the meantime make it
> possible to relea
At 4:48 PM -0700 3/24/10, Dave Carrigan wrote:
>Actually, a subversion branch is exactly what you want.
Not to start the inevitable version control flamewar, but Subversion's
branching is weak in comparison to other systems, except cvs of course.
Perforce has strong branching and merging also.
On Wed, Mar 24, 2010 at 5:10 PM, Jon Pugh wrote:
> Not to start the inevitable version control flamewar, but Subversion's
> branching is weak in comparison to other systems, except cvs of course.
> Perforce has strong branching and merging also.
Agreed. I recently had to merge a feature branch
Hi folks,
I am having trouble with Xcode where the "Step Into" button in the
debugger is acting just like "Step Over."
One project is newly created under 3.1.4, as a Foundation Tool, and I
find that I cannot "Step Into" any of my Objective C methods. The
only workaround is to place break
On 25 Mar 2010, at 00:02, Martin Hewitson wrote:
> I guess this is an old chestnut, but a google search didn't reveal any good
> clues as how one might go about doing code folding in an NSTextView subclass.
>
> So, does anyone have any suggestions how one might implement such a feature?
> Th
On Mar 24, 2010, at 7:44 PM, Brian Willoughby wrote:
> Another potentially important detail is that I am running Leopard 10.5.8 on a
> 1.67 GHz PowerPC G4 PowerBook with 2 GB RAM.
>
> Any ideas how to fix this? Do I need an even older release of Xcode 3.x to
> get proper debugger operations o
Hi Markus,
Yes, this is a known problem on Leopard. The issue is that when NSToolbar
shows the customization palette, well, a view can't be in the toolbar and the
customization palette simultaneously, so NSToolbar "copies" the popup via
NSKeyedArchiver. Unfortunately, NSMenu's encodeWithCoder
I sometimes have that problem on Snow Leopard too. Relatively rare, thank
goodness, but certainly an issue sometimes.
Gideon
On 25/03/2010, at 12:17 PM, Nick Zitzmann wrote:
>
> On Mar 24, 2010, at 7:44 PM, Brian Willoughby wrote:
>
>> Another potentially important detail is that I am running
I've looked for a couple of hours trying to find a simple example on how to
implement tooltips over three graphic buttons. I just want to do something
simple like show what they do. {add, insert, modify, delete, print, etc}.
Actually you can tell pretty much what all the icons do except for the
On 2010 Mar 24, at 11:02, Joanna Carter wrote:
> Well, I have found a very simple way to avoid secondary MOCs or new objects
> appearing in the table view, whilst adding new objects.
>
> My example is to use a modal sheet to allow the editing of a new object
and you don't even create the o
On Mar 24, 2010, at 21:10, Bill Hernandez wrote:
> I've looked for a couple of hours trying to find a simple example on how to
> implement tooltips over three graphic buttons. I just want to do something
> simple like show what they do. {add, insert, modify, delete, print, etc}.
> Actually you
On 25 Mar 2010, at 10:16, Jerry Krinock wrote:
> The font cascade list is mentioned briefly in "Core Text Programming Guide",
> but there is no clue as to how to access it.
>
> Any documentation references on these topics would be appreciated!
I have no documentation references but I do it li
I have an application where I would like to bind the preferences UI items to
the a NSUserDefaultsController. That part is easy. The next part I would like
to do is add my preferences controller as an observer for those properties that
would be managed by the controller. That had me stumped a bit
47 matches
Mail list logo