How to Display Images in a WebView

2011-12-01 Thread Sandeep Mohan Bhandarkar
Hi All, Can some one provide any pointers as to how we can display an Image in a WebView. and can this be done without the use of a HTML File.? Thanks and Regards, Sandeep Mohan Bhandarkar. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

How to display HTML in proper format in a NSTextView

2011-11-29 Thread Sandeep Mohan Bhandarkar
correctly. Please see the figure below. Can some one let me know how we can display the HTML with the appropriate spacing etc. Thanks and Regards, Sandeep Mohan Bhandarkar. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

How to remove items from NSCollectionView without view selection

2011-10-17 Thread Sandeep Mohan Bhandarkar
re lablesArray is an ArrayController object. This is working currently but i have to select the prototypeItem view first and then click on the "-" button. can some one tell me if there is a way where in i can directly remove the item just by clicking on "-" and not selectin

Re: how to set path on NSPathControl

2011-10-03 Thread Sandeep Mohan Bhandarkar
Tried doing the same with the value bindings and it seemed to work. On Oct 3, 2011, at 8:41 PM, Quincey Morris wrote: > On Oct 3, 2011, at 20:20 , Sandeep Mohan Bhandarkar wrote: > >> Can some one let me know if it is possible to set a NSPathControl using a >> NSString. I

how to set path on NSPathControl

2011-10-03 Thread Sandeep Mohan Bhandarkar
Hi All, Can some one let me know if it is possible to set a NSPathControl using a NSString. I tried the follwong. NSString *Node1 = @"Test1"; NSString *Node2 = @"Test2"; [rootSubRootPath setURL:[NSURL URLWithString:[NSString stringWithFormat:@"/%@/%@", Node1, Node2]]]; Here rootSubRootP

Re: How to replace occurrences of a pattern with a NSAttributedString

2011-09-20 Thread Sandeep Mohan Bhandarkar
Hi Mike, <> is a character sequence.. Thanks, Sandeep On Sep 20, 2011, at 2:26 AM, Mike Abdullah wrote: > > On 20 Sep 2011, at 10:16, Sandeep Mohan Bhandarkar wrote: > >> Hi All, >> >> >> Can anyone tell me how the following can be achieve

How to replace occurrences of a pattern with a NSAttributedString

2011-09-20 Thread Sandeep Mohan Bhandarkar
Hi All, Can anyone tell me how the following can be achieved. I have a string as given bellow. "This is a simple text with an attachment <>" I would like to replace the occurrence of the pattern "<>" with a NSAttributedString (Containing a icon). Can some one please let me know how this cou

How to get the exact location and range for an Attachment present in NSTextView

2011-09-19 Thread Sandeep Mohan Bhandarkar
Hi All, Can anyone tell me if it is possible to get the exact range and location of an attachment present in a NSTextView. Here is what i am looking for 1) Attach images, Documents inline in a NSTextView using NSAttributedString. 2) Get the exact location for the Attachment in the entire text vi

How to Support in-line attachments in NStextView

2011-09-14 Thread Sandeep Mohan Bhandarkar
Hi All, I have a requirement where in I need to create a NSTextView that can support in-line attachments. the feature that I am looking for can be summed up in the following points 1) Ability to drag and drop files images etc onto the NSTextView. 2) Displaying one placeholder image for any file

How to change font trait and font family for a NSBrowserCell

2011-07-06 Thread Sandeep Mohan Bhandarkar
Hi All, I am trying to set a particular font for the NSBrowserCell. Basically i want some of the cells in the Browser to Appear in bold. I tried the following in the browser willDisplayCell method but with no success. can some one please let me know what is the correct approach - (void) browse

Re: Dragging from an NSBrowser to an NSTableView

2011-06-23 Thread Sandeep Mohan Bhandarkar
Abdullah wrote: > Look at the datasource API for each view. They both have methods for writing > and reading to/from the pasteboard. > > On 23 Jun 2011, at 09:38, Sandeep Mohan Bhandarkar wrote: > >> Hi All, >> >> within my application i have a screen wher

Re: tableView: objectValueForTableColumn: row: method not getting called

2011-06-23 Thread Sandeep Mohan Bhandarkar
Yeah. checked it out by hardcoding a value of 2 in the rows returned now the method seems to be getting called. Thank you for your assistance jens. Regards, Sandeep. On Jun 23, 2011, at 2:49 PM, Jens Alfke wrote: > > On Jun 23, 2011, at 2:46 PM, Sandeep Mohan Bhandarkar wrote: >

Re: tableView: objectValueForTableColumn: row: method not getting called

2011-06-23 Thread Sandeep Mohan Bhandarkar
Hi Jens, I have just wired up the delegate outlet and for the second query. The count shows up as zero but will this be the reason for the method not getting called...? Regards, Sandeep. On Jun 23, 2011, at 2:34 PM, Jens Alfke wrote: > > On Jun 23, 2011, at 2:23 PM, Sandeep Mohan Bhan

tableView: objectValueForTableColumn: row: method not getting called

2011-06-23 Thread Sandeep Mohan Bhandarkar
Hi All, Any reasons why this method will not get called. Please find below the list of steps that i have taken 1) Connected the dataSource outlet of the Table View to my files owner. 2) Registered the dragTypes for the Table View 3) Did the delegate bindings for the Table 4) Implemented numberOf

Dragging from an NSBrowser to an NSTableView

2011-06-23 Thread Sandeep Mohan Bhandarkar
Hi All, within my application i have a screen where exists and NSBrowser as well as an NSTableViews. can someone please let me know we can implement dragging items from the browser to the table view. any source reference on this would be very helpful. Thanks in Advance, Sandeep. ___