Questions tagged [delegation]

A delegate is a type that references a method

A delegate is a type that references a method. Once a delegate is assigned a method, it behaves exactly like that method. The delegate method can be used like any other method, with parameters and a return value

761 questions
0
votes
1 answer

Is this the correct "layout" for delegation?

I'm building a simple calendar application based in a single view controller. The view controller has a hierarchy as follows: CDViewController CalendarView EventView AgendaView TPKeyboardAvoidingTableView EventInfoCell My question…
HighFlyingFantasy
  • 3,789
  • 2
  • 26
  • 38
0
votes
2 answers

How to get custom NSManagedObject subclass from selected UITableViewCell

I have a UITableView in my app that displays some Location objects which I have created as part of a Core Data store. The UITableViewCell actually just displays the name of the Location (one of the properties on the Location object). When the user…
Jamie
  • 5,090
  • 28
  • 26
0
votes
1 answer

ASP.NET app double-hop issue when sending email to exchange

I created an ASP.NET application for an internal purpose, where the domain user accesses a simple web form, fills in the form and submits. The application impersonates the user and sends an email as the logged on domain user to our ticketing system…
0
votes
1 answer

Cannot find protocol declaration for changeMapTyp iOS

I currently get the error "cannot find protocol declaration for changeMapTyp" and I have no idea why. I imported all the required files, but it hasn't solved my problem. As mentioned in my comments, the error message disappears when I delete the…
Kito
  • 1,375
  • 4
  • 17
  • 37
0
votes
2 answers

Delegation to SecondViewController inside a NavigationController presented Modally

I'm really not sure how to express this question in the fewest and clearest words possible. But I'll try my best. I have a class ShoppingCartVC and I want to add products to it. So I modally present a CategoriesVC modally. When I select a category…
acecapades
  • 893
  • 12
  • 23
0
votes
1 answer

linked list MutableString homework inheriting vs delegation

I have a linked list question that stems from this homework prompt I am about to post. it might help with the answer: Specifics The Java String class is immutable (you cannot change the contents). This is sometimes a hindrance to what you want to…
anthony
  • 71
  • 8
-1
votes
2 answers

Rectangular Shapes Events Programmatically

public class Car { public string StreetName; public RectangleShape Car_Shape; public int ArrivalTime, Axis, Lane; public string Direction; public double Car_Delay; public bool Mobile; public Stopwatch Sw = new Stopwatch(); public…
YMELS
  • 153
  • 1
  • 4
  • 18
-1
votes
0 answers

segue a string to another class without using built in navigation bar

In my swift code what I would like to do is segue a name from a table view cell to a new class. I do not want to do the the navigation bar with the built in library from any of this operation. The code should segue the text on the table view when…
Sam Burns
  • 65
  • 1
  • 10
-1
votes
3 answers

How to release an object declared into a method and passed to another method?

Any idea on how to release the UIImage object picture in this case: - (void)connectionDidFinishLoading:(NSURLConnection *)connection { UIImage *payload = [[UIImage alloc] initWithData:self.activeDownload]; UIImage *picture = [[UIImage…
Stephane
  • 4,978
  • 9
  • 51
  • 86
-1
votes
1 answer

How to Call delegates

Good day, i am pretty new to how delegates work and require some assistance here is my code so far this is code in my main class. using System; using System.Collections.Generic; using System.Linq; namespace…
-1
votes
1 answer

Built in function for Different Super class objects

I want to compare the super classes of two different objects.If it is same then it should ask for another opponnet. Unless it selects the type that is diffenret. I have the following code for it. But it always returns true. boolean equal(Characters…
Muskh
  • 1
-1
votes
1 answer

delete tableviewcell via button in that specific cell

My code below uses a tableVIEWVIEW cell to display a single button. What I want to do is have the button in tableVIEWVIEW cell named deleteBTN delete that specif tableview cell and only delete that cell. I don’t know what class I should Put the…
-1
votes
1 answer

Android - Linear Layout default onClickListener that delegates clicks?

I have a Map view with some pins of certain locations, whenever a location is pressed a bottom LinearLayout popup is displayed. Whenever the user clicks on the map but not on the popup, the popup is dismissed. We have a bug, that whenever the popup…
-1
votes
2 answers

Delegate from View Controller through Navigation Controller to Page Controller

I have an Page View Controller containing two Navigation Controllers, which are embedding view controllers. Is it possible to pass data directly from the View Controller to the Page View Controller. I want to use the delegation pattern, but I think…
-1
votes
1 answer

How can I extend the functionality of apache FTPFile?

I'm learning OOP in Java and I've come across a problem. I need to create a custom object Folder that retains the functionality of the FTPFile object and add some more to it. FTPClient client = new FTPClient(); FTPFile[] folders =…