ther way.
On Tuesday, 9 August 2011 at 13:55, Mike Abdullah wrote:
> It is not possible this way. You should not inject your code willy-nilly into
> other apps.
>
> On 9 Aug 2011, at 13:48, Joshua Garnham wrote:
> > I'm not so bothered about Safari/Mail, I just used Safari as
is next step is possible, I am not sure.
Josh
On Tuesday, 9 August 2011 at 13:40, Mike Abdullah wrote:
> Forget any notion of doing this for NSTextView I'd advise; Safari and Mail
> are based around WebViews.
>
> On 8 Aug 2011, at 19:47, Joshua Garnham wrote:
>
> &g
I need to know when text is entered (or anything relating to a delegate method
happens) in any NSTextView in the active app whether it's my app, TextEdit or
Safari. Similar to this app here (http://pilotmoon.com/popclip/).
I'm not sure how exactly to go about this and the only thing I have tho
go from there.
Thanks again.
Josh
On Monday, 8 August 2011 at 08:02, Kyle Sluder wrote:
> On Sun, Aug 7, 2011 at 11:40 PM, Joshua Garnham
> mailto:joshua.garn...@yahoo.co.uk)> wrote:
> >
> > Is there some notification that is posted or some other way to tell when in
>
Is there some notification that is posted or some other way to tell when in a
NSTextView or any editable element that something has been autocorrected?
Thanks.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin request
r
To: Joshua Garnham
Cc: "cocoa-dev@lists.apple.com"
Sent: Tue, 19 April, 2011 16:02:17
Subject: Re: NSTableView willDisplayCell: called on hover
On Apr 19, 2011, at 7:35 AM, Joshua Garnham wrote:
> So my question really is, why does willDisplayCell: get called after a 3 sec
> hove
I've been doing some custom drawing in the
tableView:willDisplayCell:forTableColumn:row: and from this realized that if
you
hover over a row in the table view for about 3 seconds then it will call
willDisplayCell: again.
What's even more odd is that if I close the window and reopen it and ho
: Joshua Garnham
Cc: cocoa-dev@lists.apple.com
Sent: Sun, 26 December, 2010 22:04:22
Subject: Re: Gap above NSMenuItem custom view
On Sun, Dec 26, 2010 at 4:16 PM, Joshua Garnham
wrote:
>
> I see your point but I just found this post on Stack Overflow detailing how
>someone else ha
I see your point but I just found this post on Stack Overflow detailing how
someone else has done it.
http://stackoverflow.com/questions/4064386/reverse-engineering-an-nsmenu-for-a-status-bar-item
However I am having dificulty compiling the code as I get EXC_BAD_ACCESS on the
line where the ev
I am using the setView: method on an NSMenuItem to set a custom view. In this
custom view there is an image which takes the whole of the view. The NSMenuItem
with this custom view is the first in the menu but the problem is it doesn't
sit flush with the top of the menu, there is a big gap as yo
How can I display an editable NSTextField inside an NSMenuItem? I'm looking to
do something similar to Spotlight.
Would it work by simply usingsetView: on the menu item?
Thanks!
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
Thanks, that worked just how I wanted it too!
From: Nick Zitzmann
To: Joshua Garnham
Cc: cocoa-dev@lists.apple.com
Sent: Wed, 7 July, 2010 17:24:12
Subject: Re: NSButtonCell visibility in NSOutlineView.
On Jul 7, 2010, at 10:06 AM, Joshua Garnham wrote
It seems to be a pretty simple task but I am unsure how to go about it.
I am looking to hide a checkbox in Column 0 if the row it's on has any children.
How would I do this?
Cheers.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do
Garnham
From: David Duncan
To: Joshua Garnham
Cc: cocoa-dev@lists.apple.com
Sent: Thu, 22 April, 2010 17:12:08
Subject: Re: App is in Landscape Mode, but main UIWindow still thinks it’s
portrait.
On Apr 22, 2010, at 8:35 AM, Joshua Garnham wrote:
> My
My App runs in landscape mode and I have been converting a CGPoint
to the main UIWindow's co-ordinate system.
I decided to check this was
working all correctly by adding a couple of NSLog's to return the
Co-Ordinates before and after it was converted and what I noticed was
that before it was con
I am trying to make an if statement which will check whether the users touch is
within a
UIButton's bounds. I thought this would be an easy affair as UIButton
is a subclass of UIView, however my code doesn't seem to work.
This is the code I have been using.
- (void)touchesMoved:(NSSet *)touches wi
I have been trying to move a UIView by following a users touch. I
have almost got it to work except for one thing, the UIView keeps
flicking between two places.
The Code I Have Been Using and What's been Happening.
___
Cocoa-dev mailing list (Cocoa-d
What I am looking to do is set the background color of the selected row in an
NSTableView when a I button is clicked.
I've seen other cases where people have used
tableView:willDisplayCell:forTableColumn:row: and setBackgroundColor: but I
don't think that will work in my situation where I want i
I know there are tutorials
like Marcus Zarras which shows how to change from one view to another,
but I would like to animate in a view which isn't going to replace another
view. Here's what I have at the moment:http://drp.ly/9w86s (Test App).
The view seems to slide in but the view isn't actually
Thanks that works now!
From: Paul Sanders
To: Joshua Garnham
Cc: cocoa-dev@lists.apple.com
Sent: Sat, 2 January, 2010 15:03:11
Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView.
Yep, that looks ok. I think pS is probably being returned
ers
To: Graham Cox ; Joshua Garnham
Cc: Cocoa-Dev List
Sent: Sat, 2 January, 2010 11:04:52
Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView.
Well, I have to say Graham has a point there, and I'm not going
to write your code for you, but what I do goes something like
How would I use that?
From: Paul Sanders
To: Joshua Garnham ; Graham Cox
Cc: cocoa-dev@lists.apple.com
Sent: Fri, 1 January, 2010 15:09:47
Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView.
Check out NSTextView's setTypingAttri
Oh, I see. That works partly. The text that is already in the NSTextView at
launch has the new Line Height but as soon as you start to type the line your
typing on resets it's line height to default.
From: Graham Cox
To: Joshua Garnham
Cc: coco
oshua Garnham
Cc: Cocoa-Dev List
Sent: Fri, 1 January, 2010 0:16:04
Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView.
On 01/01/2010, at 5:14 AM, Joshua Garnham wrote:
> So would this work?…
> NSMutablePargagraphStyle *paragraphStyle;
> [paragraphStyle setLineSpacing:spaci
];
[textView setDefaultParagraphStyle:paragraphStyle];
- Josh
From: Fritz Anderson
To: Joshua Garnham
Cc: cocoa-dev List
Sent: Wed, 30 December, 2009 17:24:21
Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView.
On 30 Dec 2009, at 11:01 AM
But the methodssetLineSpacing: and others are NSMutableParagraphStyle methods
only.
From: Ross Carter
To: Joshua Garnham
Cc: cocoa-dev@lists.apple.com
Sent: Wed, 30 December, 2009 16:12:18
Subject: Re: Setting the Line Height/ Line Spacing in an NSTextView
How would I set the Line Height/ Line Spacinh in an NSTextView? e.g How
tall each line is or how much space is between each line.
Here's what I've tried (but doesn't work), it is in a NSTextView subclass …
- (void)setDefaultParagraphStyle:(NSMutableParagraphStyle *)paragraphStyle {
CGFloat sp
How would I set the Line Height/ Line Spacing in an NSTextView? e.g How
tall each line is or how much space is between each line.
Thanks.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments
Ah, I see. so I need to send it to an instance of the class not the class it
self.
How would I do that?
Thanks,
Josh.
From: Jens Alfke
To: Jim Kang
Cc: Joshua Garnham ; cocoa-dev@lists.apple.com
Sent: Thursday, 22 October, 2009 6:21:29
Subject: Re: Sending a
.
From: Shawn Erickson
To: Joshua Garnham
Cc: cocoa-dev@lists.apple.com
Sent: Wednesday, 21 October, 2009 18:02:55
Subject: Re: Sending a Selector to another Class.
On Wed, Oct 21, 2009 at 9:23 AM, Joshua Garnham
wrote:
>How would I send a Selector to anot
How would I send a Selector to another class?
I know to send it to a selector in the same file you do
[self performSelector:@selector(doSomething)];
and for sending it to another class I've tried
[otherClass performSelector:@selector(doSomethingElse)];
But I just get an error in the Debugger sa
FromInsert {
[self addObserver:[NSApp delegate] forKeyPath:@"name"
options:NSKeyValueObservingOptionNew context:nil];
}
But how would I trigger an action when the name property changes?
Cheers,
Josh.
From: Kyle Sluder
To: Joshua Garnham
Cc: maco
Some good links in that email, thanks!
From: M. Moore
To: Eric Gorr
Cc: Joshua Garnham ; Mailing List Cocoa
Sent: Tuesday, 13 October, 2009 17:55:43
Subject: Re: Adding 'Help' to your App.
You might be interested in another thread going on in
Thanks, I'll take a look at that.
From: Eric Gorr
To: Joshua Garnham ; Mailing List Cocoa
Sent: Tuesday, 13 October, 2009 17:44:17
Subject: Re: Adding 'Help' to your App.
On Oct 13, 2009, at 12:37 PM, Joshua Garnham wrote:
> Just won
Hi,
Just wondering if there is some documentation on how to add 'help' to your app.
Cheers.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa
_____
From: Abizern
To: Joshua Garnham
Sent: Saturday, 10 October, 2009 13:04:06
Subject: Re: Removing an Object with A Certain Title from an NSTreeController.
2009/10/10 Joshua Garnham
>Hi,
>
>>I am wondering how I could delete an object depending on it's title for th
Hi,
I am wondering how I could delete an object depending on it's title for the
CoreData 'name' property I have.
To Add an Object I use this code:
NSManagedObjectContext *moc = [self managedObjectContext];
JGManagedObject *theParent =
[NSEntityDescription insertNewObjectForEntityForName:@"p
Hi,
That works now, Thanks Very Much!!!
Josh.
From: Volker in Lists
To: Joshua Garnham
Cc: cocoa-dev@lists.apple.com
Sent: Wednesday, 7 October, 2009 18:04:59
Subject: Re: Triggering a Method when a Core Data Property is Altered.
Hi,
awakeFromFetch is only
oid *)context
{
[self performSelector:msg withObject:object withObject:keyPath];
}
Is there something wrong that is blatantly obvious?
Cheers,
Josh.
From: Volker in Lists
To: Joshua Garnham
Cc: cocoa-dev@lists.apple.com
Sent: Tuesday, 6 October, 2009 18:57:59
Subject
Hi.
I am trying to trigger a method when A Core Data property is changed, e.g A
Text Fields Text in a Table (connected to Core Data) is changed. I have looked
into Key Value Observing but haven't had much luck.
Cheers.
___
Cocoa-dev mailing list
Hi,
Thanks, It works now I've fixed the warnings.
Cheers.
From: Stamenkovic Florijan
To: Joshua Garnham
Cc: cocoa-dev
Sent: Thursday, 1 October, 2009 13:32:20
Subject: Re: Deleting CalTasks through an Array.
Hi Joshua,
You're welcome, but you ne
I have an Array of strings and want to remove CalTasks with titles of any of
the strings.
I know I can loop through a array with
for(NSString *title in array) {
}
and delete tasks with
removeTask:title error:nil
But it won't let me delete a CalTask object with the strings from the Array
inst
I have a NSOutlineView and I want to make the text for a row change color when
the check box on that row has been checked.
How would I do that?
Thanks.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mod
I
am looking to retrieve the selected object in an NSOutlineView so I can
see if the selected object has any children. How would I do this?
I know the NSTreeController has selectedObject but how would I implement this
and then check if it has children.
Cheers!
__
lete Imediately");
}
}
From: Kyle Sluder
To: Joshua Garnham
Cc: "cocoa-dev@lists.apple.com"
Sent: Monday, 7 September, 2009 17:52:26
Subject: Re: Making an NSAlert be displayed when the User attempts to delete a
row from an NSOutlineView when it has childre
From: Steven Degutis
To: Joshua Garnham
Cc: cocoa-dev@lists.apple.com
Sent: Monday, 7 September, 2009 17:20:50
Subject: Re: Making an NSAlert be displayed when the User attempts to delete a
row from an NSOutlineView when it has children.
Josh,
The outline view is probably being displayed wi
How would I do this?
The Outline View is being used with Core Data.
Cheers,
Josh.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins
I would like the Data to be deleted permanently.
Cheers,
Josh.
From: Jack Carbaugh
To: Joshua Garnham
Cc: cocoa-dev@lists.apple.com
Sent: Saturday, 5 September, 2009 22:37:00
Subject: Re: Making an Outline View delete a rows children when the parent is
How would I make a rows children be deleted when the parent is deleted?
Cheers,
Josh.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-adm
Thanks Very Much Sean.
Just 2 Questions, Where do I put the Code? and How will the method know when a
Row is Added?
Cheers,
Josh.
>
>From: Sean McBride
>To: Joshua Garnham ; cocoa-dev@lists.apple.com
>Sent: Thursday, 27 August, 2009 20:18:10
I have an NSOutlineView and what I want to happen is that when a row is
added I want the row that has been added to Start Editing immediately
like when you double click on a row.
Cheers,
Josh.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
How would I make an NSTableView display an RSS Feed (just one)?
I think it would have something to do with NSURL and Setting the Table Views
Data Source.
But how exactly would I do this?
Cheers,
Josh.
___
Cocoa-dev mailing list (Cocoa-dev@lists.a
I am using an NSOutlineView
in my App so i downloaded Apples Photo Search Sample App which uses an
NSOutlineView. While using it I noticed that it gives the root/header object
of the outline view a Gradient Background, so I looked through the code
but I couldn't see what did it. Would someone mind
Hi There,
I have an NSOutlineView and what I want to happen is that when a row is
added I want the row that has been added to Start Editing immediately
like when you double click on a row.
I have had a go using the code below (but as I'm not that Confident with Cocoa)
it did not work.
- (IBActi
Hi There,
I have an NSOutlineView and what I want to happen is that when a row is
added I want the row that has been added to Start Editing immediately
like when you double click on a row.
I have had a go using the code below (but as I'm not that Confident with Cocoa)
it did not work.
- (IBActi
What I am trying to do is that when my App is first opened the NSOutlineView
will already have A Parent and A Child, the child being inside the parent, like
in this picture,
http://www.grabup.com/uploads/7490ffebda697ef976c3d6a3b57323ba.png.
What code would I need to do this?
Thanks,
Josh.
I am looking for some code to make the root object's in an outline view have a
different background color to the other rows.
I am pretty sure I need to sub-class the outline view but I don't know what
code to add to the sub-class to do what I want it to do (which is what I
described above).
Coul
I have a Sub-Classed NSTextFieldCell and am looking for some code to adjust the
line height for each line so it looks right on the background of my NSTextField.
Thanks,
Josh.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not pos
I have a text field with a background but to make it look right the text
field needs to have some padding (or a slight indent) on the left side of it a
bit like the
NSSearchField (because of the search image). How would I give the text field
some padding on the left?
Thanks,
Josh.
__
I am getting the Error/Warning about a part of my code saying 'Messages
Without A Matching Method Signature will be assumed to return 'id' and
accept '…' as arguments.)'
I do not understand why I am getting this
error, so please help, below is a link to that part of code in the
implementation file.
60 matches
Mail list logo