On Tue, Nov 24, 2009 at 10:14 PM, wrote:
> This returns a non-nil value:
> NSURL * url = [NSURL URLWithString:@"sdsds"];
>
> The docs say this should fail. RFC 1758 looks for the string to begin with a
> scheme, eg http:
While "sdsds" is indeed a valid relative URL according to RFC 2396,
don't l
Hi Gustavo,
Gustavo Pizano wrote:
> I needed to use not the proxy but the selected element. .. grrr..
Then I may advise you to use the lastObject selector il you expect only
one selectedObject. Using objectAtIndex:0 will give a BAD_EXEC (as long
I recall) Error (anyway) each time you have an e
Okay
How i will perform these two operations in my uninstall.app
1. Removal of app icon from dock if "Keep in dock" is selected
2. Removal of app from user launch services if "Open at login" is selected
On Tue, Nov 24, 2009 at 10:02 PM, Jens Alfke wrote:
>
> On Nov 24, 2009, at 6:30 AM, Parima
Hi,
In my app running on snow leopard, in a particular situation I'm getting an
undesired behavior.
Debugging a "for loop" shows a still in scope variable being optimized away.
code: (problem occurs after the loop has been iterated thousands (may be more)
of time.
for loop statement her
On Wed, Nov 25, 2009 at 4:50 AM, Nick Rogers wrote:
> In my app running on snow leopard, in a particular situation I'm getting an
> undesired behavior.
> Debugging a "for loop" shows a still in scope variable being optimized away.
Barring a *serious* bug in the compiler, optimization does not
in
Hi list,
i'm trying to override an IKImageBrowserView to do some custom drawing but i'm
stuck.
What i try to accomplish is that when the view contains zero items, some custom
drawing happens like drawing an NSAttributedString that says "Drop items
here..."
Problem is that my drawing code gets n
Hi Florian,
You can't do custom drawing this way (because the IKImageBrowserView renders
into an openGL surface, so AppKit or CoreGraphics calls won't do anything).
So to do what you want you can either:
- make the view layer backed and add a sub-layer
- add an overlay transparent window on top o
Hello to all on the list.
I have a little question so if anyone could help me.
I'm have an outline view that has one (for now) object in root array
that acts as a root from which all other objects derives.
\/ Root Array
|\/ Root object
|---
Also, you could try swapping out the image browser (or making it hidden) when
it is empty, and display an alternative placeholder view in its place.
Also, file a bug report requesting the ability to do this built-in.
On 25 Nov 2009, at 13:44, Thomas Goossens wrote:
> Hi Florian,
>
> You can't
Hi Thomas,
thanks for the reply, i did try the first method you suggest with
adding a layer but it didn't work either.
I also tought of the second method but how would i make sure that my
IKImageBrowserView still receives drop event?
I ned to be compatible with 10.5 so method 3 is out of th
On 25 Nov 2009, at 14:06, Florian Soenens wrote:
> Hi Thomas,
>
> thanks for the reply, i did try the first method you suggest with adding a
> layer but it didn't work either.
> I also tought of the second method but how would i make sure that my
> IKImageBrowserView still receives drop event?
Thanks to all for the help.
i went with Mike's solution of swapping view.
I wrapped the IKImageBrowserView into a Tabless NSTabview with in the second
tab my "dropview".
I will also file the bug report as Mike suggested.
Thanks!
On Wednesday, November 25, 2009, at 03:34PM, "Mike Abdullah"
w
I'm really trying to do things correctly with my app but I'm at a
place where I can't figure out what correct is, and all my best
examples do it wrong (I think).
I am working on the drawing parts of my app. In my last app I most
definitely did things Wrong but they work fine and there's jus
You have the -Wconversion flag on.
Sent from my iPhone
On Nov 24, 2009, at 6:47, Hans van der Meer wrote:
Doing NSDictionary *objects enumerate over its keys thus:
for ( id key in [objects allKeys] ) {}
According to the documentation allKeys returns a NSArray and
NSArray's conform to NSFa
I think you are missing the point of the quote, which is that drawing
programs are an exception to the typical rule that view data must be
strictly separated from the model ("However, in this case"). When the
model data is all about visual information (drawing), then you have no
choice but
On Nov 25, 2009, at 5:49 AM, Mario Kušnjer wrote:
> How to hide the disclosure triangle in front of the Root object and remove
> indentation for it, and just that object (and later if there is more Root
> objects for them too) ?
I think what you're looking for is the delegate method
- (BOOL)ou
OK, I see what you are saying, and to that I respond, why does every
example that I have ever found of how to draw objects in a custom view
happen to be a drawing program? :)
And I'm not sure I buy what you are saying, because, just like I
mentioned for the Sketch example, what does his pro
On Nov 25, 2009, at 7:27 AM, Paul Bruneau wrote:
> I think I recognize, and I am pretty sure I have read that Sketch does things
> Wrong. I see that the shape objects keep their own bounds (and frame?)
> information. It seems clear to me that this is Wrong. What does Sketch do if
> it ever can
On Nov 25, 2009 2:06am, Kyle Sluder wrote:
On Tue, Nov 24, 2009 at 10:14 PM, lorenzo7...@gmail.com> wrote:
> This returns a non-nil value:
> NSURL * url = [NSURL URLWithString:@"sdsds"];
>
> The docs say this should fail. RFC 1758 looks for the string to begin
with a
> scheme, eg
On Nov 25, 2009, at 8:31 AM, lorenzo7...@gmail.com wrote:
> So is there a way to validate a string before passing it to URLWithString?
Depends on what you want to do. If you want URLs of a specific scheme, check
the -scheme property of the resulting NSURL. That will weed out degenerate
cases l
On Nov 25, 2009, at 8:23 AM, Paul Bruneau wrote:
> And I'm not sure I buy what you are saying, because, just like I mentioned
> for the Sketch example, what does his program do when the user makes a new
> window with the same view in it and that view has a different zoom factor, or
> is scroll
On Nov 25, 2009, at 11:24 AM, Jens Alfke wrote:
On Nov 25, 2009, at 7:27 AM, Paul Bruneau wrote:
I think I recognize, and I am pretty sure I have read that Sketch
does things Wrong. I see that the shape objects keep their own
bounds (and frame?) information. It seems clear to me that this i
On 2009.11.25, at 17:20, Jens Alfke wrote:
On Nov 25, 2009, at 5:49 AM, Mario Kušnjer wrote:
How to hide the disclosure triangle in front of the Root object and
remove indentation for it, and just that object (and later if there
is more Root objects for them too) ?
I think what you're l
On Nov 25, 2009 10:36am, Jens Alfke wrote:
On Nov 25, 2009, at 8:31 AM, lorenzo7...@gmail.com wrote:
> So is there a way to validate a string before passing it to
URLWithString?
Depends on what you want to do. If you want URLs of a specific scheme,
check the -scheme property of the
Le 25 nov. 2009 à 17:49, Mario Kušnjer a écrit :
>
> On 2009.11.25, at 17:20, Jens Alfke wrote:
>
>>
>> On Nov 25, 2009, at 5:49 AM, Mario Kušnjer wrote:
>>
>>> How to hide the disclosure triangle in front of the Root object and remove
>>> indentation for it, and just that object (and later
You want this delegate method:
- (BOOL)outlineView:(NSOutlineView *)outlineView
shouldShowOutlineCellForItem:(id)item;
Cheers,
Dave
On Nov 25, 2009, at 9:49 AM, Mario Kušnjer wrote:
>
> On 2009.11.25, at 17:20, Jens Alfke wrote:
>
>>
>> On Nov 25, 2009, at 5:49 AM, Mario Kušnjer wrote:
>>
On Nov 25, 2009, at 8:40 AM, Paul Bruneau wrote:
> I guess this is what you mean by "a bounding box transformed into view
> coordinates". Yes, that is the way I am thinking of it, so that I can do
> things like hit-testing in however many views my user might have open. So OK
> I will start thi
On Nov 25, 2009, at 8:59 AM, lorenzo7...@gmail.com wrote:
> Thanks for the reply. I'm looking through the Cocoa API now. I think I might
> be able to use NSNetService's -resolveWithTimeout along with NSURL's -scheme
> to validate a string. Seems like more work than should be necessary, but oh
Hi list,
is NSConnection retaining its delegate?
(At least as long as it is collecting data)
I thought contract is that a delegate is never retained?
This behavior requires to _always_ send cancel to the connection before you
release the delegate. Otherwise the NSConnection might still hold on
Nick Rogers wrote:
NSTimeInterval etaDouble = interval * ((totalBlocks -
blockCount) / blockCount); // * debugger doesn't list this
variable, mouse shows a pop up saying "variable optimized away by
compiler"
int eta = (int)etaDouble; // value is 0 here instead of something
On Nov 25, 2009 11:05am, Jens Alfke wrote:
On Nov 25, 2009, at 8:59 AM, lorenzo7...@gmail.com wrote:
> Thanks for the reply. I'm looking through the Cocoa API now. I think I
might be able to use NSNetService's -resolveWithTimeout along with
NSURL's -scheme to validate a string. Seems l
Are you trying to this internally inside your app? If so, why?
-raleigh
On Nov 24, 2009, at 11:57 AM, Andreas Hegenberg wrote:
> Hello everybody,
>
> I hope this is the correct mailinglist for my question.
>
> I want to create a NSEvent with the NSEventTypeMagnify and a specific
> magnificati
On Nov 25, 2009, at 9:28 AM, lorenzo7...@gmail.com wrote:
> I was just looking through the API to see what methods might help me with
> this and NSNetService looked like it might work, until I read the class
> description. What I'm doing exactly, is downloading batches of web pages via
> http.
You should be able to weed stuff out pretty quickly by:
1) Use +URLWithString: to see if the string can be interpreted as a URL
2) Construct a request with the URL and see what +[NSURLConnection
canHandleRequest:] has to say
3) Try to load the URL
On 25 Nov 2009, at 17:28, lorenzo7...@gmail.com
On Nov 25, 2009 11:34am, Dave Carrigan wrote:
On Nov 25, 2009, at 9:28 AM, lorenzo7...@gmail.com wrote:
> I was just looking through the API to see what methods might help me
with this and NSNetService looked like it might work, until I read the
class description. What I'm doing exactl
Hi,
I run a dashboard for multiple 3G vendors. Normally the connection will be done
without Username/Password - but some Providers have changed their policy, so I
have to rebuild my Application and enter "Username/Password" to it.
This is the Code I am now using - but it will not pass the User/
On Nov 25, 2009, at 9:34 AM, Dave Carrigan wrote:
The only way to determine the validity of a well-formed url is to
attempt to retrieve it.
The two of you are using different terminology. He's asking how to
tell if a URL is well-formed.
Lorenzo: If you want to know if you can retrieve a
Question for Jean-Daniel and Dave
Is that delegate method in Snow Leopard ?
Because I don't see it in Leopard !
- (BOOL)outlineView:(NSOutlineView *)outlineView
shouldShowOutlineCellForItem:(id)item;
Mario Kušnjer
mario.kusn...@sb.t-com.hr
+385957051982
__
On Thursday, November 26, 2009, Mario Kušnjer wrote:
> Is that delegate method in Snow Leopard ?
> Because I don't see it in Leopard !
>
> - (BOOL)outlineView:(NSOutlineView *)outlineView
> shouldShowOutlineCellForItem:(id)item;
I wanted to do something similar recently on Leopard. I ended up wi
Disregard that last question.
I have just checked online documentation on Apple Dev site.
It's Snow Leopard feature, not available in Leopard.
So, I should subclass NSOutlineView to solve my problem (on Leopard) ?
Mario Kušnjer
mario.kusn...@sb.t-com.hr
+385957051982
_
On Wednesday, November 25, 2009, at 12:15PM, "Alexander Spohr"
wrote:
>is NSConnection retaining its delegate?
>(At least as long as it is collecting data)
FWIW I've never used NSConnection, but in the following quick and dirty code it
did not retain the delegate I gave it.
TestDelegat
Shame on me!
I meant NSURLConnection.
Andy, sorry that I bothered you with the wrong test.
This is one example where copy-paste is better than fresh typing...
So the (corrected) question still stands:
is NSURLConnection retaining its delegate?
atze
Am 25.11.2009 um 21:19 schrieb Andy L
Yes, the documentation for that (Snow Leopard) delegate method tells you where
to go: subclass NSOutlineView, implement the (Leopard) method
- (NSRect)frameOfOutlineCellAtRow:(NSInteger)row
and return NSZeroRect for the appropriate row(s).
-> jp
On Nov 25, 2009, at 11:38 AM, Mario Kušnjer wrote
I have a flipped custom view (within a scroll view) which layouts it's
subviews as follows:
WORKS:
- (void) layoutSubviews
{
NSLog(@"layout");
NSRect frame = [self frame];
CGFloat width = frame.size.width;
CGFloat height = 0;
for(NSView *itemView in itemViews) {
I read in a file, parse the contents, and then I create NSTableColumns
based on the contents of the file … and then I just
addTableColumn:newColumn to the NSTableView. I've attached a small
image of the problem I'm seeing where my border doesn't completely run
across the bottom of each of my header
On 2009 Nov 25, at 12:53, Alexander Spohr wrote:
> I meant NSURLConnection.
If it is indeed not documented whether or not NSURLConnection retains its
delegate, I believe you can design for either case.
* When a NSURLConnection completes, you may release it or allow it to be
autoreleased.
*
On Nov 23, 2009, at 6:51 PM, Darren Wheatley wrote:
> I have the following code as the action from a button click:
>
> - (IBAction)chooseFile:(id)sender;
> {
>NSOpenPanel *openPanel = [NSOpenPanel openPanel];
You haven't retained this panel. If you want this object to live beyond the
curre
Hi,
I have a UIImageView that overlays a MPMoviePLayerController. When the movie
plays, the view is in landscape. I want to have my overlay image to drop from
the top of the movie and move down. The below code rotates the image. How do I
get this effect?
- (void)showOverlay:(NSTimer *)timer {
Hi !
So I have sub classed NSOutlineView and implemented single method like
this:
- (NSRect)frameOfOutlineCellAtRow:(NSInteger)row {
return row == 0 ? NSZeroRect : [super frameOfOutlineCellAtRow:row];
}
That works except the indentation problem is still on.
If root object is empty th
Mario Kušnjer's question reminded me of a question that I've been
pondering about NSOutlineViews, namely, is there a way to have one
item on the outline initialized in the selected state when the outline
is first created? That is, when the window containing the outline is
first displayed t
Never mind,
I figured it out.
Regards,
UIImage *image = [UIImage imageNamed:@"top.png"];
UIImageView *imageView = [ [ UIImageView alloc ]
initWithFrame:CGRectMake(295, 480/2, image.size.width, image.size.height) ];
imageView.image = image;
imageView.trans
How about this?
NSInteger index = [myOutlineView rowForItem:itemToSelect];
NSIndexSet * indexSet = [NSIndexSet indexSetWithIndex:index];
[myOutlineView selectRowIndexes:indexSet byExtendingSelection:NO];
HTH,
Dave
On Nov 25, 2009, at 4:48 PM, Boyd Collier wrote:
> Mario Kušnjer's question remi
On 26/11/2009, at 3:40 AM, Paul Bruneau wrote:
> Thank you, I was thinking of the bounding box as dependent on the view. For
> example, I think of a "zoom" value for a view--that affects the bounding box,
> doesn't it? Or do I use a sort of "natural bounding box" for my objects that
> is then
Hello All,
I'm trying to query a Core Data database which contains geoLocation information
for all of the objects of type "Photo" which are within a specified distance of
a target point, using the following code.
- (NSArray*) photosNearLatitude: (NSNumber*) inLatitude
long
On Nov 25, 2009, at 3:25 PM, Ken Thomases wrote:
> You haven't retained this panel. If you want this object to live beyond the
> current autorelease context, you need to retain it. (Note that not retaining
> doesn't guarantee that it _will_ be released at the end of the autorelease
> context,
Hi,
I couldn't find a dedicated hardware list, so, I thought I'd post this here.
I've Googled this several times over the past year or so, but can't find
anything relevant. I'm looking for a PCI card or even a USB or firewire device
with 3.5mm ports for IR transmitters (or bugs or eyes) and OS
Here's me again !
So I have found a different solution for my problem and it does not
include subclassing NSOutlineView,
but trough the use of two delegate method.
This is my implementation:
- (NSCell *)outlineView:(NSOutlineView *)outlineView
dataCellForTableColumn:(NSTableColumn *)tableCo
Hi,
I am trying use CAPlayThru (
http://developer.apple.com/mac/library/samplecode/CAPlayThrough/) example
code of Apple, to get playthru happening from my Mic to Speakers. It works
well for the device with different DeviceId for Input and Output. If the
deviceId is same, then it gives me a proble
Am 25.11.2009 um 23:25 schrieb Jerry Krinock:
>
> On 2009 Nov 25, at 12:53, Alexander Spohr wrote:
>
>> I meant NSURLConnection.
>
> * Normally the delegate is receiving and storing headers, data and errors for
> you. You should retain the delegate as long as you are interested in the
> hea
Ron,
I am not sure if that works at all. I never fetched using methods that are not
part of the database as a qualifier. Your code has to be very slow because it
would need to fetch all Photos and then call distanceFromLatitude:longitude: on
each.
Why not qualify directly using a bounding rect
60 matches
Mail list logo